Commit 4d7ad5b3 authored by birk's avatar birk
Browse files

Added player service to enable autostart and restart.

parent 899e4c62
......@@ -3,3 +3,10 @@ Sender Medienarchiv der Künste
![](https://medienarchiv.zhdk.ch/media/822530be-7300-4332-9049-5ad905ac3df6)
## Setting player up as a `systemd` service
Create directory `~/.config/systemd/user` and copy `service/player.service` there.
Enable the service: `systemctl --user enable player.service`
Reload the daemon: `sudo systemctl daemon-reload`
And restart the service: `sudo systemctl restart player.service`
\ No newline at end of file
[Unit]
Description=Sender Medienarchiv
After=multi-user.target
[Service]
ExecStart=/home/itz/madek-broadcaster/service/start.sh
Restart=always
Environment="DISPLAY=:0"
[Install]
WantedBy=default.target
#!/bin/sh
/home/itz/.virtualenvs/broadcaster/bin/python /home/itz/madek-broadcaster/player/main.py > /home/itz/log 2>&1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment