9 Star 27 Fork 0

Gitee 极速下载/Webmin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/webmin/webmin
克隆/下载
webmin-gentoo-init 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
#!/sbin/openrc-run
# Copyright 2024 webmin & mckaygerhard
# Distributed under the terms of the GNU General Public License, v2 or later
name="webmin"
# config file must be in sync with setup script, so i will not touch cos process will be the same as webmin-systemd
# like calling updateboot.pl with a new procedure method defined as openrc and not just assumed sysvinit if not systemd is present
# and also atboot.pl with new procedure for openrc the alpine linux init system at the moment
#conf_file="WEBMIN_CONFIG/miniserv.conf"
conf_file="/etc/webmin/miniserv.conf"
depend() {
need logger localmount
use net
after bootmisc
}
start() {
# same problem here.. we need to use WEBMIN_CONFIG variable to find the start script
# WEBMIN_CONFIG/start
/etc/webmin/start
eend $?
}
stop() {
# same problem here.. we need to use WEBMIN_CONFIG variable to find the stop script
# WEBMIN_CONFIG/stop
/etc/webmin/stop
eend $?
}
status() {
pidfile=`grep "^pidfile=" "${conf_file}" | sed -e 's/pidfile=//g'`
if [ -s $pidfile ]; then
pid=`cat $pidfile`
kill -0 $pid >/dev/null 2>&1
if [ "$?" = "0" ]; then
einfo "webmin (pid $pid) is running"
return 0
else
einfo "webmin is stopped"
return 0
fi
else
einfo "webmin is stopped"
return 0
fi
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Perl
1
https://gitee.com/mirrors/webmin.git
git@gitee.com:mirrors/webmin.git
mirrors
webmin
Webmin
master

搜索帮助