代码拉取完成,页面将自动刷新
#!/bin/sh
# webmin This shell script takes care of starting and stopping
# webmin
#
# Source function library.
. /etc/rc.d/init.d/functions
NAME=miniserv
DAEMON=/usr/libexec/webmin/miniserv.pl
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
# check if the webmin conf file is present
[ -f /etc/webmin/miniserv.conf ] || exit 0
case "$1" in
start)
[ ! -e $SVIlock ] || exit 1
if [ -f /etc/webmin/miniserv.conf ]; then
echo -n "Starting $IDENT: "
ssd -S -n $NAME -x $DAEMON -- /etc/webmin/miniserv.conf 2>&1 >/dev/null
touch $SVIlock
echo "."
else
echo "$NAME not configured (in /etc/webmin/miniserv.conf): Skipped!"
fi
;;
stop)
[ -e $SVIlock ] || exit 0
echo -n "Stopping $IDENT: "
ssd -K -p /var/run/miniserv.pid >/dev/null 2>&1 && echo -n "miniserv"
rm -f $SVIlock
echo "."
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。