1 Star 0 Fork 0

嘲月/online

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
loolwsd.init.rhel6 937 Bytes
一键复制 编辑 原始数据 按行查看 历史
Andras Timar 提交于 2019-09-12 18:33 . add init script for RHEL6/CentOS6
#!/bin/bash
#
# chkconfig: 35 90 12
# description: loolwsd server
#
# Get function from functions library
. /etc/init.d/functions
# Start the service loolwsd
start() {
echo -n $"Starting loolwsd server: "
su lool -c "/usr/bin/loolwsd --version --o:logging.file[@enable]=true" &
### Create the lock file ###
touch /var/lock/subsys/loolwsd
success $"loolwsd server startup"
echo
}
# Stop the service loolwsd
stop() {
echo -n $"Stopping loolwsd server: "
killproc loolwsd
### Now, delete the lock file ###
rm -f /var/lock/subsys/loolwsd
echo
}
### main logic ###
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status loolwsd
;;
restart|reload|condrestart)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|status}"
exit 1
esac
exit 0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cfgrpg/online.git
git@gitee.com:cfgrpg/online.git
cfgrpg
online
online
master

搜索帮助