summaryrefslogtreecommitdiffstats
path: root/core/modules/hardware-stats/data/etc/systemd/system/hardware-stats.service
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-03 18:24:47 +0200
committerSimon Rettberg2019-04-03 18:24:47 +0200
commita937f7a47a8838a692f434f778f47e607a569b8f (patch)
tree6662471ad9384b5bbcb6a0d05f1a5971676c54b0 /core/modules/hardware-stats/data/etc/systemd/system/hardware-stats.service
parent[xorg] Remove "set -e" (diff)
downloadmltk-a937f7a47a8838a692f434f778f47e607a569b8f.tar.gz
mltk-a937f7a47a8838a692f434f778f47e607a569b8f.tar.xz
mltk-a937f7a47a8838a692f434f778f47e607a569b8f.zip
[hardware-stats] Use ExecStop for shutdown notification
Try a different approach: Since out initial hardware-stats service logging the poweron event is a oneshot with RemainAfterExit set, make the shutdown reporting script its ExecStop line (and hope that this works reliably on shutdown).
Diffstat (limited to 'core/modules/hardware-stats/data/etc/systemd/system/hardware-stats.service')
-rw-r--r--core/modules/hardware-stats/data/etc/systemd/system/hardware-stats.service4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/hardware-stats/data/etc/systemd/system/hardware-stats.service b/core/modules/hardware-stats/data/etc/systemd/system/hardware-stats.service
index 1f893ab1..36d47986 100644
--- a/core/modules/hardware-stats/data/etc/systemd/system/hardware-stats.service
+++ b/core/modules/hardware-stats/data/etc/systemd/system/hardware-stats.service
@@ -1,11 +1,11 @@
[Unit]
Description=Gather statistics about this machine and send to boot server
-DefaultDependencies=no
-After=tmp.target mount-vm-store.service
+After=tmp.target mount-vm-store.service network.target
Wants=tmp.target
[Service]
Type=oneshot
ExecStart=/opt/openslx/scripts/systemd-hardware_stats
RemainAfterExit=yes
+ExecStop=/opt/openslx/scripts/shutdown-system_usage_update