You can run any program at startup by calling it from /etc/rc.d/rc.local,
which executes at the end of the boot process.  YOur own scripts can go in
/usr/local/bin.


----- Original Message -----
From: "Søren Neigaard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 8:36 AM
Subject: init.d startupscript - how do I do it?


> I'm trying to make a script that should be run at startup, and I have
placed
> it in /etc/rc.d/init.d
>
> If I run the script manually with 'start' as parameter, it works fine and
> starts my application, but it does not start at startup.
>
> Any help will be apriciated, I'm a newbie at this :)
>
> [SNIP]
> #!/bin/bash
>
> MON=/usr/ha/mon-0.99.2
>
> if [ $1 = "start" ]; then
>         $MON/mon -f -c $MON/eth.cf
> elif [ $1 = "stop" ]; then
>         pid=$(ps -xw|grep $MON/eth.cf|grep -v grep|cut -c 1-5)
>         kill $pid
> else
>         echo running
> fi
>
> exit 0
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to