[JDEV] Re: webmin module
Jerome Tournier
jtournier at idealx.com
Wed Nov 15 06:42:47 CST 2000
Here is a simple script that allow starting jabber.
You can put it in /etc/rc.d/init.d and do necessary for this to be starting at any boot.
#!/bin/sh
# Script for starting jabber
###
### 2000 IDEALX S.A.S.
### author jtournier at idealx.com
###
# Source function library.
. /etc/rc.d/init.d/functions
case "$1" in
start)
echo -n "Starting jserver:"
/usr/local/bin/jabberd &
echo
;;
-D)
echo -n "Starting jserver in debugg mode:"
/usr/local/bin/jabberd -D
echo
;;
stop)
echo -n "Shutting down jabber: "
killproc jabberd
echo
;;
status)
status jabberd
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: jserver {start}"
echo "or option -D for debugg mode"
exit 1
esac
exit 0
#
# I'm writing a jabber module for webmin, and want to add a "stop" , "start"
# button, does any one have a script to do this with jabber?
#
# Something like the scripts at /etc/rc.d/init.d
#
# Omar
#
#
# _______________________________________________
# jdev mailing list
# jdev at jabber.org
# http://mailman.jabber.org/listinfo/jdev
#
--
Jérôme Tournier IDEALX S.A.S. - Ingénierie Open Source
Développeur 15-17, avenue de Ségur
+33 (0)1 44 42 00 00 F-75007 PARIS
jtournier at idealx.com http://idealx.com/
More information about the JDev
mailing list