[UPDATE] - TP 05 - '#'

This commit is contained in:
2022-05-02 21:45:53 +02:00
parent 2f2a283f7e
commit 86011bbacf
3 changed files with 8 additions and 4 deletions
@@ -19,8 +19,8 @@ if [[ "$1" == "start" ]]
[[ -f /tmp/endmonitor ]] && rm -f /tmp/endmonitor
rm /tmp/Monitor* /tmp/webmonithor &> /dev/null
TotalConfig=$(ls -1 /etc/monithor-client/conf/ | grep grep .*\.cfg| wc-l)
for Conf in $(ls -1 /etc/monithor-client/conf/ | grep grep .*\.cfg)
TotalConfig=$(ls -1 /etc/monithor-client/conf/ | grep .*\.cfg| wc -l)
for Conf in $(ls -1 /etc/monithor-client/conf/ | grep .*\.cfg)
do
screen -dmS ${Conf} bash /usr/local/bin/monithor-client.d/MoniThor ${Conf}
done
@@ -15,6 +15,8 @@ echo '<html>
!!!! Initialization !!!!
Warning : check the config /etc/monithor-client/conf/*cfg
' > index.html
while [[ ! -f /tmp/endmonitor ]]