[Planetlab-users] Restarting a program after reboot
Alex Sherman
asherman at cs.columbia.edu
Fri Sep 23 10:28:00 EDT 2005
Hi
I want to make sure that my program starts up when a planetlab machine
is rebooted. A while back I found a hint somewhere in the FAQ
that recommended to modify the /etc/rc.vinit to have crond started
at boot time. (And that runs a command in my crontab)
Below is the pasted script suggested in the FAQ. However, I find that
on some machines crond is not running. I am not sure whether this is
a problem with the script or crond starts up and then dies for some
unexplained reason.
Any suggestions will be appreciated.
-Alex
my /etc/rc.vinit:
#!/bin/sh
case "$1" in
'start')
/etc/init.d/crond start
;;
'stop')
/etc/init.d/crond stop
;;
'restart')
/etc/init.d/crond restart
;;
*)
echo rc.vinit was called with $1 as an argument
;;
esac
/usr/bin/logger rc.vinit completed $1 at `date`
More information about the Users
mailing list