[Planetlab-users] Configuring a service for automatic startup

Adrian Suter research at adriansuter.ch
Mon Aug 20 10:56:30 EDT 2007


Hello everybody

I'd like to implement a long-running service that should start 
automatically after a reboot of the planet-lab node. I've read and 
reread the subsection 4.3 of the user guide on 
http://www.planet-lab.org/doc/guides/user but I get always the message

*snip*
bash: chkconfig: command not found
*snap*

I would like to start up a perl script. Has anyone experience in this 
kind of stuff? Is it possible to run an infinite loop (i.e. while(1) 
{...} ) such that the script never stops, or are there some 
admin-scripts that abort infinite runing perl scripts?

Today I have edited the file "/etc/rc.d/rc.local" but as the node did 
not reboot yet, I can't say if this is working or not.

*snip*
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
perl /home/epfl_nguyen/service.pl
*snap*

Thank you for any advice
Adrian Suter



More information about the Users mailing list