On 3/14/06, Morten Bjørnsvik
Use chkconfig
It works on both suse and redhat (ripped from irix):
Add a chkconfig comment to your script: # added for redhat/suse chkconfig compatibility # chkconfig: 345 99 10 # description: Secana deamon s3d startup
what script are you talking about adding this to? Do you mean, simply create a bash script for launching the app, and be sure to add these comments at the top of the script file? And what is the signifigance of the "chkconfig: 345 99 10" line? (ie what do the numbers mean? Will they always be the same for each app we are trying to use with chkconfig?)
Then create the softlink for the app to /etc/init.d/
mbjlinux:~ # ln -s /opt/s3/server/s3init /etc/init.d/secana mbjlinux:~ # chkconfig --add secana mbjlinux:~ # chkconfig --list secana secana 0:off 1:off 2:off 3:on 4:off 5:on 6:off
(also notice that suse does not use runlevel4 and it is taken care of).
this is very cool, and will help me hugely if this is all there is to it. Thanx much! peter