Skip to content

Commit

Permalink
Merge pull request #629 from languitar/feature/systemd-also
Browse files Browse the repository at this point in the history
feat(systemd): automatically enable/disable suspend hook
  • Loading branch information
languitar authored Feb 23, 2025
2 parents 645b859 + 772797a commit 097e567
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions data/autosuspend.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ ExecStart=/usr/bin/autosuspend -l /etc/autosuspend-logging.conf daemon

[Install]
WantedBy=multi-user.target
Also=autosuspend-detect-suspend.service
5 changes: 0 additions & 5 deletions doc/source/systemd_integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ To start |project_program| via `systemd`_, execute:
.. code-block:: bash
systemctl enable autosuspend.service
systemctl enable autosuspend-detect-suspend.service
.. note::

Do not forget the second ``enable`` call to ensure that wake ups are configured even if the system is manually placed into suspend.
To start |project_program| automatically at system start, execute:

Expand Down

0 comments on commit 097e567

Please sign in to comment.