📄 webmin-caldera-init
字号:
#!/bin/sh# webmin This shell script takes care of starting and stopping# webmin## Source function library.. /etc/rc.d/init.d/functionsNAME=miniservDAEMON=/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 0case "$1" instart) [ ! -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 1esacexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -