[JDEV] j1.2 on RH 6.2 --??
Oliver Jones
oj at world.std.com
Tue Jan 2 13:54:26 CST 2001
At 11:02 AM 1/2/01 -0600, you wrote:
>I've configured jabberd to start under
>/etc/rc.d/init.d/jabberd ...
>Does anybody know what would be involved in rewriting jtournier's script
>so that it can be managed using chkconfig?
Easy. Put a comment line like this near the top of your jabberd script.
# chkconfig: 345 90 10
This line says that this script should be started when going to runlevels
3,4,5, and stopped when going to other levels.
It should be started with "priority" 90, and stopped with "priority"
10. By way of comparison, this means it will be started after the web
server (85), and stopped before the web server (15).
Once you've edited your script, give these two command lines and you'll be
all set for automatically starting and stopping (the first line clears out
any vestigial configuration).
/sbin/chkconfig --del jabberd
/sbin/chkconfig --add jabberd
You can check whether it's configured correctly with this line:
/sbin/chkconfig --list jabberd
Have fun!
Oliver Jones
More information about the JDev
mailing list