Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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 Andreas Radke (AndyRTR) - Monday, 13 July 2020, 09:03 GMT
Task Type Feature Request
Category Packages: Extra
Status Assigned
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

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

Comment by Moabit (Moabit) - Thursday, 23 July 2020, 07:53 GMT
I had another crash today that left my computer unprotected for hours. I've written a systemd service in the meantime. One has to install it as a [user](https://wiki.archlinux.org/index.php/Systemd/User).

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
```
Comment by Moabit (Moabit) - Thursday, 30 July 2020, 06:55 GMT
FWIW this isn't ideal, because it doesn't wait until Xorg starts. It restarts the default 5 times, then stops trying any more. We could conceivably make the unit wait for that trigger, but I just removed the restart limit (as well as increased the restart time).

```
[Unit]
Description=xscreensaver daemon
StartLimitIntervalSec=0

[Service]
Type=simple
ExecStart=/usr/bin/xscreensaver -nosplash
Restart=always
RestartSec=2

[Install]
WantedBy=default.target
```
Comment by Moabit (Moabit) - Sunday, 13 September 2020, 08:44 GMT
Happy bug-wrangling day! This issue is still present and still fixable as per the comments.

Loading...