F7_recording/systemd/f7cloud-talk-recording.service

19 lines
593 B
Desktop File

[Unit]
Description=F7cloud Talk Recording Server
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=f7cloud-talk-recording
Group=f7cloud-talk-recording
WorkingDirectory=/var/lib/f7cloud-talk-recording
Environment=HOME=/var/lib/f7cloud-talk-recording
Environment=DISPLAY=:99
ExecStart=/usr/bin/xvfb-run --server-num=99 --server-args="-screen 0 1920x1080x24 -nolisten tcp" /opt/f7cloud-talk-recording/venv/bin/python -m f7cloud.talk.recording --config /etc/f7cloud-talk-recording/server.conf
Restart=on-failure
RestartSec=2
[Install]
WantedBy=multi-user.target