2 # webmin This shell script takes care of starting and stopping
6 # Source function library.
7 . /etc/rc.d/init.d/functions
10 DAEMON=/usr/libexec/webmin/miniserv.pl
12 # Source networking configuration.
13 . /etc/sysconfig/network
15 # Check that networking is up.
16 [ ${NETWORKING} = "no" ] && exit 0
18 # check if the webmin conf file is present
19 [ -f /etc/webmin/miniserv.conf ] || exit 0
23 [ ! -e $SVIlock ] || exit 1
24 if [ -f /etc/webmin/miniserv.conf ]; then
25 echo -n "Starting $IDENT: "
26 ssd -S -n $NAME -x $DAEMON -- /etc/webmin/miniserv.conf 2>&1 >/dev/null
30 echo "$NAME not configured (in /etc/webmin/miniserv.conf): Skipped!"
35 [ -e $SVIlock ] || exit 0
36 echo -n "Stopping $IDENT: "
37 ssd -K -p /var/run/miniserv.pid >/dev/null 2>&1 && echo -n "miniserv"
43 echo "Usage: $0 {start|stop}"