summaryrefslogtreecommitdiff
path: root/systemd/synoptic.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/synoptic.service')
-rw-r--r--systemd/synoptic.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/systemd/synoptic.service b/systemd/synoptic.service
new file mode 100644
index 0000000..33e7237
--- /dev/null
+++ b/systemd/synoptic.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Download and render BOM synoptic chart
+OnFailure=synoptic-retry.timer
+
+[Service]
+Type=oneshot
+User=st33v
+WorkingDirectory=/var/lib/synoptic
+ExecStart=/opt/synoptic/synopticChart.sh
+ExecStopPost=/bin/sh -c 'STATUS=SUCCESS; [ "$$EXIT_STATUS" != "0" ] && STATUS=FAILURE; logger -t synoptic -p user.err "synoptic $$STATUS exit=$$EXIT_STATUS"'
+SyslogIdentifier=synoptic
+StandardOutput=journal
+StandardError=journal