... | ... | @@ -97,3 +97,26 @@ If something is /required/ by a working session place it in the WantedBy of plas |
|
|
|
|
|
If something is optional add an [Install] section into that specific service file and make it into graphical-session.target.wants upstream documentation on this is the best.
|
|
|
|
|
|
# Templates
|
|
|
|
|
|
The following settings are recommended:
|
|
|
|
|
|
```
|
|
|
[Unit]
|
|
|
PartOf=graphical-session.target
|
|
|
```
|
|
|
When using the plasma systemd boot, this will scope services to only be valid whilst the session is active.
|
|
|
|
|
|
```
|
|
|
[Service]
|
|
|
RestartPreventExitStatus=1
|
|
|
```
|
|
|
When not using the plasma systemd boot we hit issues with X11 connection being taken away. This exits with -1, we don't want to restart in this case
|
|
|
|
|
|
|
|
|
```
|
|
|
[Service]
|
|
|
TimeoutSec=5sec
|
|
|
````
|
|
|
The default timeout between quit signal and killing is ridiculously long. No user service should take more than a few ms. We want this short to prevent the user getting stuck waiting forever on shutdown if an issue does arise.
|
|
|
|