[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-c
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: MoniThor Server
### END INIT INFO
set -e
test -x /usr/local/bin/monithor-client || exit 0
umask 022
case "$1" in
start)
if [ ! -z $(ps axf| grep monithor-client | grep -v grep) ]
then
logger "monithor-client is running ..."
else
logger "Starting MoniThor Server"
/usr/local/bin/monithor-client start
fi
;;
stop)
logger "Stoping MoniThor server" "monithor-c" || true
/usr/local/bin/monithor-client stop
;;
*)
echo "Usage: /etc/init.d/monithor-c {start|stop|status}" || true
exit 1
esac
exit 0
@@ -0,0 +1,4 @@
10.10.10.3:1666#file#/tmp/coucou
10.10.10.3:1666#file#/tmp/nop
10.10.10.3:1666#file#
10.10.10.3:1666#NotRealSondeName#reboot
@@ -0,0 +1,4 @@
10.10.10.4:1666#file#/tmp/coucou
10.10.10.4:1666#file#/tmp/nop
10.10.10.4:1666#file#
10.10.10.4:1666#NotRealSondeName#reboot
@@ -0,0 +1,7 @@
RemoteIp=10.10.10.3:1666
LocalPassword='Evil@MonitoR-666'
Crypted=no
Rotation=1
TimeOut=2
WebPort=80
@@ -0,0 +1,8 @@
10.10.10.3:1666#file#/tmp/coucou
10.10.10.3:1666#file#/tmp/nop
10.10.10.3:1666#file#
10.10.10.3:1666#NotRealSondeName#reboot
10.10.10.4:1666#file#/tmp/coucou
10.10.10.4:1666#file#/tmp/nop
10.10.10.4:1666#file#
10.10.10.4:1666#NotRealSondeName#reboot