|
Home > Archive > Unix administration > January 2004 > URGENT : start an application on unix at boot time . Please help....
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
URGENT : start an application on unix at boot time . Please help....
|
|
| indian 2004-01-23, 5:01 pm |
| it is a news application which we start using the command "ant all" in
unix as root.
but what i really want to do is to check whether the application is
already running and if not start it automatically....i think it
involves a crontab entry..also i want to start it automatically at
boot.
any help will be greatly appreciated.
yours sincerely,
down_to_planet.
| |
| Michael Vilain 2004-01-23, 5:01 pm |
| In article <419bb1d6.0309041150.65ee9c88@posting.google.com>,
down_to_planet@hotmail.com (indian) wrote:
quote:
> it is a news application which we start using the command "ant all" in
> unix as root.
>
> but what i really want to do is to check whether the application is
> already running and if not start it automatically....i think it
> involves a crontab entry..also i want to start it automatically at
> boot.
>
> any help will be greatly appreciated.
>
> yours sincerely,
>
> down_to_planet.
You didn't secify the OS or version or system it's running on. Is it a
SYSV (files in /etc/rc2.d) or BSD-style startup (rc.local)?
Get this function running using the Borne shell script. Will it run in
a cron? Then put it in the appropriate place in the system startup line
up.
If all this is geek to you, hire a college student to do this for you.
Shouldn't take more than 1 hour, tops.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
| |
| Chuck Dillon 2004-01-23, 5:01 pm |
| indian wrote:quote:
> it is a news application which we start using the command "ant all" in
> unix as root.
>
> but what i really want to do is to check whether the application is
> already running and if not start it automatically....i think it
> involves a crontab entry..also i want to start it automatically at
> boot.
>
> any help will be greatly appreciated.
>
> yours sincerely,
>
> down_to_planet.
The exact method depends on the flavor of UNIX you have and potentially
on the vendor. Places to look...
man init.d
more /etc/init.d/README
man inittab
If these are dead ends either ask in a forum specific to the *NIX you
are using or tell us what flavor you have.
BTW, you are talking about an admin task. You'll have to have root
privs to do what you want.
-- ced
--
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.
|
|
|
|
|