-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstream-guard.service.example
More file actions
28 lines (23 loc) · 782 Bytes
/
Copy pathstream-guard.service.example
File metadata and controls
28 lines (23 loc) · 782 Bytes
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
28
[Unit]
Description=Stream Guard (bitrate monitor, OBS scene automation, Twitch EventSub)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
# Regular user is fine here (no root needed). Must be able to read the same
# .env and twitch_tokens.json that the web app maintains.
User=<user>
Group=<user>
WorkingDirectory=/home/<user>/stream-control
EnvironmentFile=/home/<user>/stream-control/.env
Environment=PYTHONUNBUFFERED=1
ExecStart=/home/<user>/stream-control/venv/bin/python /home/<user>/stream-control/stream_guard.py
# Restart policy
Restart=always
RestartSec=5
# Logging — the in-app log viewer reads `journalctl -u stream-guard`
StandardOutput=journal
StandardError=journal
SyslogIdentifier=stream-guard
[Install]
WantedBy=multi-user.target