start as daemon

This commit is contained in:
badaix 2015-12-27 19:43:41 +01:00
parent 774b280235
commit a7a7d5ef41
2 changed files with 8 additions and 4 deletions

View file

@ -1,9 +1,11 @@
[Unit]
Description=SnapClient
Description=Snapcast client
After=network.target
[Service]
ExecStart=/usr/sbin/snapclient
Type=forking
ExecStart=/usr/sbin/snapclient -d
PIDFile=/var/run/snapclient.pid
[Install]
WantedBy=multi-user.target

View file

@ -1,9 +1,11 @@
[Unit]
Description=SnapServer
Description=Snapcast server
After=network.target
[Service]
ExecStart=/usr/sbin/snapserver
Type=forking
ExecStart=/usr/sbin/snapserver -d
PIDFile=/var/run/snapserver.pid
[Install]
WantedBy=multi-user.target