diff options
author | Simon Rettberg | 2022-09-28 09:44:01 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-09-28 09:44:01 +0200 |
commit | e6e846adf361dd8a487f0b89623f239733742f98 (patch) | |
tree | f12de051b505c9ed18d68b81bd6b9dd602a03c35 /core/modules/hardware-stats/data/etc/systemd/system/stats-shutdown.service | |
parent | [pulseaudio] Run background service for unmuting everything (diff) | |
download | mltk-e6e846adf361dd8a487f0b89623f239733742f98.tar.gz mltk-e6e846adf361dd8a487f0b89623f239733742f98.tar.xz mltk-e6e846adf361dd8a487f0b89623f239733742f98.zip |
[hardware-stats] Try harder to submit shutdown event to slx-admin
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.service | 13 |
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 + |