mirror of
https://github.com/gutmensch/docker-dmarc-report.git
synced 2025-12-17 17:56:30 +00:00
Bad space character and print message
This commit is contained in:
parent
283d7a6ea1
commit
73cc854ccc
6
start.sh
6
start.sh
@ -1,12 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# periodically check if daemon is running
|
# periodically check if daemon is running
|
||||||
# if not:
|
# if not:
|
||||||
# 1. kill former tail processes
|
# 1. kill former tail processes
|
||||||
# 2. start daemon and wait 5 seconds for startup of logging
|
# 2. start daemon and wait 5 seconds for startup of logging
|
||||||
# 3. tail new logfile
|
# 3. tail new logfile
|
||||||
while true; do
|
while true; do
|
||||||
pgrep raumsrvDaemon &>/dev/null || {
|
pgrep raumsrvDaemon 1>/dev/null 2>&1 || {
|
||||||
pkill tail;
|
echo "$(date "+%Y.%m.%d %H:%M:%S.000") Process missing in action. Starting or restarting raumsrvDaemon.";
|
||||||
|
pkill tail 2>/dev/null;
|
||||||
/opt/raumserver/raumsrvDaemon && sleep 5;
|
/opt/raumserver/raumsrvDaemon && sleep 5;
|
||||||
new_log=$(ls -t /opt/raumserver/logs/*.log 2>/dev/null | head -n 1);
|
new_log=$(ls -t /opt/raumserver/logs/*.log 2>/dev/null | head -n 1);
|
||||||
[ -n "${new_log}" ] && tail -f $new_log &
|
[ -n "${new_log}" ] && tail -f $new_log &
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user