-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathshairport-sync_web.service
27 lines (24 loc) · 1.18 KB
/
shairport-sync_web.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# # -*- systemd -*-
# - uses virtualenv python version
# cd /home/pi/projects/shairport-sync-mqtt-display/python-flask-socketio-server/etc
# sudo cp shairport-sync_web.service /lib/systemd/system/[email protected]
# sudo chmod 644 /lib/systemd/system/[email protected]
# sudo systemctl daemon-reload
# sudo systemctl enable [email protected]
# sudo systemctl status [email protected]
# sudo systemctl start [email protected]
# journalctl -u [email protected]
[Unit]
Description=Shairport-sync MQTT Remote Control and Metadata Webserver
Documentation=https://github.com/idcrook/shairport-sync-mqtt-display
After=network.target network-online.target
# After=network.target time-sync.target
ConditionPathExists=/home/pi/projects/shairport-sync-mqtt-display/python-flask-socketio-server/etc
[Service]
Type=simple
WorkingDirectory=/home/pi/projects/shairport-sync-mqtt-display/python-flask-socketio-server
ExecStart=/home/pi/projects/shairport-sync-mqtt-display/python-flask-socketio-server/.venv/bin/python \
/home/pi/projects/shairport-sync-mqtt-display/python-flask-socketio-server/app.py
User=pi
[Install]
WantedBy=default.target