summaryrefslogtreecommitdiffstats
path: root/core/modules/hardware-stats/data/etc/systemd/system/stats-shutdown.service
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/hardware-stats/data/etc/systemd/system/stats-shutdown.service')
-rw-r--r--core/modules/hardware-stats/data/etc/systemd/system/stats-shutdown.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/modules/hardware-stats/data/etc/systemd/system/stats-shutdown.service b/core/modules/hardware-stats/data/etc/systemd/system/stats-shutdown.service
new file mode 100644
index 00000000..5d36034a
--- /dev/null
+++ b/core/modules/hardware-stats/data/etc/systemd/system/stats-shutdown.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Send shutdown event to boot server
+# Try this as a dedicated service in addition to the ExecStop=
+# entry in the hardware-stats.service, as that one sometimes
+# doesn't trigger/reach the server :-(
+Wants=network.target
+Before=shutdown.target
+After=network.target
+
+[Service]
+Type=oneshot
+ExecStart=/opt/openslx/scripts/shutdown-system_usage_update
+