diff --git a/LED-Server-audiorecorder.service b/LED-Server-audiorecorder.service new file mode 100644 index 0000000..ea8d0a8 --- /dev/null +++ b/LED-Server-audiorecorder.service @@ -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 diff --git a/LED-Server-core.service b/LED-Server-core.service new file mode 100644 index 0000000..f388079 --- /dev/null +++ b/LED-Server-core.service @@ -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