fixing background service

This commit is contained in:
rootzoll 2018-12-11 13:59:00 +01:00
parent 01b6f4d4b4
commit 452c6528f1
2 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,7 @@
# This script runs on after start in background
# as a service and gets restarted on failure
# it runs ALMOST every seconds
# DEBUG: sudo journalctl -f -u background
# INFOFILE - state data from bootstrap
infoFile="/home/admin/raspiblitz.info"
@ -26,7 +27,6 @@ do
# count up
counter=$(($counter+1))
echo "counter($counter)"
####################################################
# RECHECK DHCP-SERVER
@ -59,7 +59,7 @@ do
# every 15min - not too often
# because its a ping to external service
recheckPublicIP=$((($counter % 60)+1))
recheckPublicIP=$((($counter % 900)+1))
if [ ${recheckPublicIP} -eq 1 ]; then
echo "*** RECHECK PUBLIC IP ***"

View File

@ -12,7 +12,7 @@ After=bootstrap.service
[Service]
User=root
Group=root
Type=forking
Type=simple
ExecStart=/home/admin/_background.sh
KillMode=process
Restart=always