Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
#!/bin/sh
2
echo Stopping Webmin server in /usr/libexec/webmin
3
pidfile=`grep "^pidfile=" /etc/webmin/miniserv.conf | sed -e 's/pidfile=//g'`
4
pid=`cat $pidfile`
5
if [ "$pid" != "" ]; then
6
  kill $pid || exit 1
7
  touch /var/webmin/stop-flag
8
  if [ "$1" = "--kill" ]; then
9
    sleep 2
10
    (kill -9 -- -$pid || kill -9 $pid) 2>/dev/null
11
  fi
12
  exit 0
13
else
14
  exit 1
15
fi