Merge pull request #139 from herrernst/systemd-unit

add basic systemd service unit example
This commit is contained in:
Paul Lietar 2017-01-04 21:57:22 +01:00 committed by GitHub
commit 9a8957169f
2 changed files with 16 additions and 1 deletions

View file

@ -88,5 +88,6 @@ available in the official library."""
section = "sound" section = "sound"
priority = "optional" priority = "optional"
assets = [ 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
View 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