diff options
Diffstat (limited to 'core/modules/idleaction/data/etc/systemd/system')
5 files changed, 24 insertions, 0 deletions
diff --git a/core/modules/idleaction/data/etc/systemd/system/basic.target.wants/idleaction-set_normal.service b/core/modules/idleaction/data/etc/systemd/system/basic.target.wants/idleaction-set_normal.service new file mode 120000 index 00000000..f6ff1d6b --- /dev/null +++ b/core/modules/idleaction/data/etc/systemd/system/basic.target.wants/idleaction-set_normal.service @@ -0,0 +1 @@ +../idleaction-set_normal.service
\ No newline at end of file diff --git a/core/modules/idleaction/data/etc/systemd/system/idleaction-set_normal.service b/core/modules/idleaction/data/etc/systemd/system/idleaction-set_normal.service new file mode 100644 index 00000000..af4df557 --- /dev/null +++ b/core/modules/idleaction/data/etc/systemd/system/idleaction-set_normal.service @@ -0,0 +1,10 @@ +[Unit] +Description=Setup next rtcwake +DefaultDependencies=no +RefuseManualStart=true + +[Service] +Type=oneshot +ExecStart=/opt/openslx/scripts/systemd-idleaction_init +RemainAfterExit=no + diff --git a/core/modules/idleaction/data/etc/systemd/system/idleaction-set_suspend.service b/core/modules/idleaction/data/etc/systemd/system/idleaction-set_suspend.service new file mode 100644 index 00000000..747d8a4c --- /dev/null +++ b/core/modules/idleaction/data/etc/systemd/system/idleaction-set_suspend.service @@ -0,0 +1,11 @@ +[Unit] +Description=Reset idletime and setup next rtcwake before suspend +DefaultDependencies=no +RefuseManualStart=true +Before=sleep.target + +[Service] +Type=oneshot +ExecStart=/opt/openslx/scripts/systemd-idleaction_init suspend +RemainAfterExit=no + diff --git a/core/modules/idleaction/data/etc/systemd/system/shutdown.target.wants/idleaction-set_normal.service b/core/modules/idleaction/data/etc/systemd/system/shutdown.target.wants/idleaction-set_normal.service new file mode 120000 index 00000000..f6ff1d6b --- /dev/null +++ b/core/modules/idleaction/data/etc/systemd/system/shutdown.target.wants/idleaction-set_normal.service @@ -0,0 +1 @@ +../idleaction-set_normal.service
\ No newline at end of file diff --git a/core/modules/idleaction/data/etc/systemd/system/sleep.target.wants/idleaction-set_suspend.service b/core/modules/idleaction/data/etc/systemd/system/sleep.target.wants/idleaction-set_suspend.service new file mode 120000 index 00000000..51286428 --- /dev/null +++ b/core/modules/idleaction/data/etc/systemd/system/sleep.target.wants/idleaction-set_suspend.service @@ -0,0 +1 @@ +../idleaction-set_suspend.service
\ No newline at end of file |