added systemd files for recoder and server

This commit is contained in:
Your Name 2019-05-11 19:50:26 +00:00
parent 380cbba210
commit 1a7bf3212c
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,16 @@
[Unit]
Description=LED-Server audiorecorder
After=syslog.target
[Service]
Type=simple
WorkingDirectory=/opt/LED-Server/clients/audiorecorder-pulse-udp/
ExecStart=/opt/LED-Server/clients/audiorecorder-pulse-udp/audiorecorder.py
SyslogIdentifier=led-server-audiorecorder
StandardOutput=syslog
StandardError=syslog
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target

16
LED-Server-core.service Normal file
View File

@ -0,0 +1,16 @@
[Unit]
Description=LED-Server Core
After=syslog.target
[Service]
Type=simple
WorkingDirectory=/opt/LED-Server/server
ExecStart=python3 /opt/LED-Server/server/LEDServer.py
SyslogIdentifier=led-server-core
StandardOutput=syslog
StandardError=syslog
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target