FS#67259 - [xscreensaver] Add systemd service
Attached to Project:
Arch Linux
Opened by Moabit (Moabit) - Monday, 13 July 2020, 04:19 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:24 GMT
Opened by Moabit (Moabit) - Monday, 13 July 2020, 04:19 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:24 GMT
|
Details
Description:
xscreensaver has crashed several times in the last week or so. It would be useful if there were a systemd service bundled so that it could automatically restart. It would also be useful for ease in installation, etc. Additional info: * package version(s) xscreensaver 5.44-1 Steps to reproduce: Install xscreensaver. Observe lack of bundled systemd service. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:24 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/xscreensaver/issues/3
Saturday, 25 November 2023, 20:24 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/xscreensaver/issues/3
Unfortunately, if xscreensaver crashes while actively displaying, your system is still going to be unprotected until the screensaver timeout elapses again. Ideally it would immediately activate again, but I'm not sure how to detect if it's displaying or not.
```
[Unit]
Description=xscreensaver daemon
[Service]
Type=simple
ExecStart=/usr/bin/xscreensaver -nosplash
Restart=always
RestartSec=100ms
[Install]
WantedBy=default.target
```
```
[Unit]
Description=xscreensaver daemon
StartLimitIntervalSec=0
[Service]
Type=simple
ExecStart=/usr/bin/xscreensaver -nosplash
Restart=always
RestartSec=2
[Install]
WantedBy=default.target
```