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