[Unit]
Description=TF2 stream - game + menu driver
After=tf2-openbox.service
Requires=tf2-openbox.service

[Service]
Type=simple
WorkingDirectory=%h/tf2stream
# set GPU=1 on a box with a real GPU (drops llvmpipe forcing, enables NVENC in capture)
Environment=GPU=0
ExecStart=/bin/bash %h/tf2stream/go_live.sh
Restart=always
RestartSec=15
# TF2 crashes on its own occasionally; always come back
TimeoutStopSec=20
KillMode=mixed

[Install]
WantedBy=default.target
