diff options
Diffstat (limited to 'systemd/synoptic-morph.service')
| -rw-r--r-- | systemd/synoptic-morph.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/systemd/synoptic-morph.service b/systemd/synoptic-morph.service new file mode 100644 index 0000000..042b697 --- /dev/null +++ b/systemd/synoptic-morph.service @@ -0,0 +1,16 @@ +[Unit] +Description=Render rolling 30-day synoptic-chart morph timelapse + +[Service] +Type=oneshot +User=st33v +WorkingDirectory=/mnt/enclave/synoptic +ExecStart=/opt/synoptic/synopticMorph.sh +# Bootstrap can take ~50 min (119 pair morphs); steady-state is ~1 min. +TimeoutStartSec=2h +Nice=10 +IOSchedulingClass=idle +ExecStopPost=/bin/sh -c 'STATUS=SUCCESS; [ "$$EXIT_STATUS" != "0" ] && STATUS=FAILURE; logger -t synoptic-morph -p user.err "synoptic-morph $$STATUS exit=$$EXIT_STATUS"' +SyslogIdentifier=synoptic-morph +StandardOutput=journal +StandardError=journal |
