diff options
author | Jonathan Bauer | 2018-02-14 13:15:54 +0100 |
---|---|---|
committer | Jonathan Bauer | 2018-02-14 13:15:54 +0100 |
commit | 780e9ebdf01db68760d95d86d09f8bc37d676dba (patch) | |
tree | 6ada795174dd2b8fc4a76ead45026e670eb8e399 /core/modules/hardware-stats/data/etc | |
parent | [lightdm-greeter-bwlp] fix path (diff) | |
parent | [run-virt] relax /tmp mount detection regex (diff) | |
download | mltk-780e9ebdf01db68760d95d86d09f8bc37d676dba.tar.gz mltk-780e9ebdf01db68760d95d86d09f8bc37d676dba.tar.xz mltk-780e9ebdf01db68760d95d86d09f8bc37d676dba.zip |
Merge branch 'master' into install-mode
Diffstat (limited to 'core/modules/hardware-stats/data/etc')
6 files changed, 26 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 ca31c695..1f893ab1 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,7 +1,7 @@ [Unit] Description=Gather statistics about this machine and send to boot server DefaultDependencies=no -After=tmp.target +After=tmp.target mount-vm-store.service Wants=tmp.target [Service] diff --git a/core/modules/hardware-stats/data/etc/systemd/system/shutdown-usage-log.service b/core/modules/hardware-stats/data/etc/systemd/system/shutdown-usage-log.service index fc65fe9f..ef51e6f2 100644 --- a/core/modules/hardware-stats/data/etc/systemd/system/shutdown-usage-log.service +++ b/core/modules/hardware-stats/data/etc/systemd/system/shutdown-usage-log.service @@ -1,5 +1,5 @@ [Unit] -Description=Gather statistics about this machine and send to boot server +Description=Tell server we're shuttong down DefaultDependencies=no Before=shutdown.target RefuseManualStart=yes diff --git a/core/modules/hardware-stats/data/etc/systemd/system/sleep.target.wants/stats-resume.service b/core/modules/hardware-stats/data/etc/systemd/system/sleep.target.wants/stats-resume.service new file mode 120000 index 00000000..d22600a3 --- /dev/null +++ b/core/modules/hardware-stats/data/etc/systemd/system/sleep.target.wants/stats-resume.service @@ -0,0 +1 @@ +../stats-resume.service
\ No newline at end of file diff --git a/core/modules/hardware-stats/data/etc/systemd/system/sleep.target.wants/stats-suspend.service b/core/modules/hardware-stats/data/etc/systemd/system/sleep.target.wants/stats-suspend.service new file mode 120000 index 00000000..b9132bba --- /dev/null +++ b/core/modules/hardware-stats/data/etc/systemd/system/sleep.target.wants/stats-suspend.service @@ -0,0 +1 @@ +../stats-suspend.service
\ No newline at end of file diff --git a/core/modules/hardware-stats/data/etc/systemd/system/stats-resume.service b/core/modules/hardware-stats/data/etc/systemd/system/stats-resume.service new file mode 100644 index 00000000..77228f4a --- /dev/null +++ b/core/modules/hardware-stats/data/etc/systemd/system/stats-resume.service @@ -0,0 +1,11 @@ +[Unit] +Description=Tell server we woke up from suspend +DefaultDependencies=no +After=systemd-suspend.service systemd-hybrid-sleep.service systemd-hibernate.service +RefuseManualStart=true + +[Service] +Type=oneshot +ExecStart=/opt/openslx/scripts/systemd-hws_standby resume +RemainAfterExit=no + diff --git a/core/modules/hardware-stats/data/etc/systemd/system/stats-suspend.service b/core/modules/hardware-stats/data/etc/systemd/system/stats-suspend.service new file mode 100644 index 00000000..cd0706cd --- /dev/null +++ b/core/modules/hardware-stats/data/etc/systemd/system/stats-suspend.service @@ -0,0 +1,11 @@ +[Unit] +Description=Tell server we're about to suspend the system +DefaultDependencies=no +Before=sleep.target +RefuseManualStart=true + +[Service] +Type=oneshot +ExecStart=/opt/openslx/scripts/systemd-hws_standby suspend +RemainAfterExit=no + |