%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.101 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/proc/self/root/usr/share/webmin/ |
Upload File : |
#!/bin/sh
# chkconfig: 235 99 10
# description: web-based administration interface for Unix systems
#
### BEGIN INIT INFO
# Provides: webmin
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Web-based administration interface for Unix systems
# Description: Webmin is a web-based interface for system administration
# for Unix. Using Webmin you can configure DNS, Samba, NFS,
# local/remote filesystems and more using your web browser.
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Web-based administration interface for Unix systems"
NAME=Webmin
PIDFILE=/var/webmin/miniserv.pid
SCRIPTNAME=/etc/init.d/webmin
START=/etc/webmin/.start-init
STOP=/etc/webmin/.stop-init
FORCERESTART=/etc/webmin/.restart-by-force-kill-init
RELOAD=/etc/webmin/.reload-init
LOCKFILE=/var/lock/subsys/webmin
CONFFILE=/etc/webmin/miniserv.conf
case "$1" in
start)
$START
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
touch $LOCKFILE >/dev/null 2>&1
fi
;;
stop)
$STOP
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
rm -f $LOCKFILE
pidfile=`grep "^pidfile=" $CONFFILE | sed -e 's/pidfile=//g'`
if [ "$pidfile" = "" ]; then
pidfile=$PIDFILE
fi
rm -f $pidfile
fi
;;
status)
pidfile=`grep "^pidfile=" $CONFFILE | sed -e 's/pidfile=//g'`
if [ "$pidfile" = "" ]; then
pidfile=$PIDFILE
fi
if [ -s $pidfile ]; then
pid=`cat $pidfile`
kill -0 $pid >/dev/null 2>&1
if [ "$?" = "0" ]; then
echo "$NAME (pid $pid) is running"
RETVAL=0
else
echo "$NAME is stopped"
RETVAL=1
fi
else
echo "$NAME is stopped"
RETVAL=1
fi
;;
restart)
$STOP ; $START
RETVAL=$?
;;
restart-by-force-kill)
$FORCERESTART
RETVAL=$?
;;
reload|force-reload)
$RELOAD
RETVAL=$?
;;
*)
echo "Usage: $0 {start|stop|restart|restart-by-force-kill|reload|force-reload|status}" >&2
RETVAL=1
;;
esac
exit $RETVAL