Commit 3466364ded4e00a2648361b9032e487e3534e738

Authored by Greg Sandstrom
1 parent 035af2b4d2
Exists in DI-1000U

add 5 second sleep on service restarts to prevent flailing while influxdb is down

Showing 3 changed files with 3 additions and 0 deletions Side-by-side Diff

DI-1000U-monitor.service View file @ 3466364
... ... @@ -9,6 +9,7 @@
9 9 ExecStart=python /path/to/repo/DI-1000U-monitor.py
10 10 WorkingDirectory=/path/to/repo
11 11 Restart=always
  12 +RestartSec=5
12 13 StandardOutput=journal
13 14 StandardError=journal
14 15  
flow-meter.service View file @ 3466364
... ... @@ -9,6 +9,7 @@
9 9 ExecStart=python /path/to/repo/flow-meter-monitor.py
10 10 WorkingDirectory=/path/to/repo
11 11 Restart=always
  12 +RestartSec=5
12 13 StandardOutput=journal
13 14 StandardError=journal
14 15  
tc08-monitor.service View file @ 3466364
... ... @@ -9,6 +9,7 @@
9 9 ExecStart=python /path/to/repo/tc08-monitor.py
10 10 WorkingDirectory=/path/to/repo
11 11 Restart=always
  12 +RestartSec=5
12 13 StandardOutput=journal
13 14 StandardError=journal
14 15