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
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
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

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
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.
Comment by Tormod Volden (tormod) - Monday, 13 February 2023, 17:56 GMT
Note that upstream (6.06) ships a service unit file.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...