mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Merge pull request #139 from herrernst/systemd-unit
add basic systemd service unit example
This commit is contained in:
commit
9a8957169f
2 changed files with 16 additions and 1 deletions
|
@ -88,5 +88,6 @@ available in the official library."""
|
|||
section = "sound"
|
||||
priority = "optional"
|
||||
assets = [
|
||||
["target/release/librespot", "usr/bin/", "755"]
|
||||
["target/release/librespot", "usr/bin/", "755"],
|
||||
["assets/librespot.service", "lib/systemd/system/", "644"]
|
||||
]
|
||||
|
|
14
assets/librespot.service
Normal file
14
assets/librespot.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Librespot
|
||||
Requires=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
#User=librespot
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
ExecStart=/usr/bin/librespot -n "%p on %H"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in a new issue