3 # description: Start or stop the Webmin server
7 # Required-Start: $network $syslog
8 # Required-Stop: $network
11 # Description: Start or stop the Webmin server
14 start=/etc/webmin/start
16 lockfile=/var/lock/subsys/webmin
17 confFile=/etc/webmin/miniserv.conf
18 pidFile=/var/webmin/miniserv.pid
23 $start >/dev/null 2>&1 </dev/null
25 if [ "$RETVAL" = "0" ]; then
26 touch $lockfile >/dev/null 2>&1
32 if [ "$RETVAL" = "0" ]; then
35 pidfile=`grep "^pidfile=" $confFile | sed -e 's/pidfile=//g'`
36 if [ "$pidfile" = "" ]; then
42 pidfile=`grep "^pidfile=" $confFile | sed -e 's/pidfile=//g'`
43 if [ "$pidfile" = "" ]; then
46 if [ -s $pidfile ]; then
48 kill -0 $pid >/dev/null 2>&1
49 if [ "$?" = "0" ]; then
50 echo "$name (pid $pid) is running"
53 echo "$name is stopped"
57 echo "$name is stopped"
66 echo "Usage: $0 { start | stop | restart }"