[UPDATE] - refact deb + generate

This commit is contained in:
2022-03-17 08:50:36 +01:00
parent 192382c8c2
commit d4300b4ca5
32 changed files with 68 additions and 256 deletions
+37
View File
@@ -0,0 +1,37 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: monithor-d
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: MoniThor Server
### END INIT INFO
set -e
test -x /usr/local/bin/monithor-server || exit 0
umask 022
case "$1" in
start)
if [ ! -z $(ps axf| grep monithor-server | grep -v grep) ]
then
logger "monithor-server is running ..."
else
logger "Starting MoniThor Server"
/usr/local/bin/monithor-server start
fi
;;
stop)
logger "Stoping MoniThor server" "monithor-d" || true
/usr/local/bin/monithor-server stop
;;
*)
echo "Usage: /etc/init.d/monithor-d {start|stop|status}" || true
exit 1
esac
exit 0