mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Harden systemd service, update restart policy (#888)
This commit is contained in:
parent
97399e2c0a
commit
bbd575ed23
3 changed files with 7 additions and 4 deletions
|
@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- [main] Enforce reasonable ranges for option values (breaking).
|
||||
- [main] Don't evaluate options that would otherwise have no effect.
|
||||
- [playback] `alsa`: Improve `--device ?` functionality for the alsa backend.
|
||||
- [contrib] Hardened security of the systemd service units
|
||||
|
||||
### Added
|
||||
- [cache] Add `disable-credential-cache` flag (breaking).
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
Description=Librespot (an open source Spotify client)
|
||||
Documentation=https://github.com/librespot-org/librespot
|
||||
Documentation=https://github.com/librespot-org/librespot/wiki/Options
|
||||
Requires=network-online.target
|
||||
After=network-online.target
|
||||
Wants=network.target sound.target
|
||||
After=network.target sound.target
|
||||
|
||||
[Service]
|
||||
User=nobody
|
||||
Group=audio
|
||||
DynamicUser=yes
|
||||
SupplementaryGroups=audio
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
ExecStart=/usr/bin/librespot --name "%p@%H"
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
Description=Librespot (an open source Spotify client)
|
||||
Documentation=https://github.com/librespot-org/librespot
|
||||
Documentation=https://github.com/librespot-org/librespot/wiki/Options
|
||||
Wants=network.target sound.target
|
||||
After=network.target sound.target
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
|
Loading…
Reference in a new issue