diff options
Diffstat (limited to 'systemd')
| -rw-r--r-- | systemd/synoptic-morph.service | 16 | ||||
| -rw-r--r-- | systemd/synoptic.service | 1 |
2 files changed, 17 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 diff --git a/systemd/synoptic.service b/systemd/synoptic.service index 33e7237..c094ee9 100644 --- a/systemd/synoptic.service +++ b/systemd/synoptic.service @@ -1,6 +1,7 @@ [Unit] Description=Download and render BOM synoptic chart OnFailure=synoptic-retry.timer +OnSuccess=synoptic-morph.service [Service] Type=oneshot |
