service_files/systemd/cstrike1.6.service

22 lines
570 B
SYSTEMD
Raw Normal View History

2024-12-18 10:51:48 -03:00
[Unit]
Description=dedicated counter-strike 1.6 server
Wants=network.target
PartOf=steam-tmux-master.service
After=steam-tmux-master.service
[Service]
Type=oneshot
WorkingDirectory=/home/steam/counter-strike1.6
User=steam
Group=steam
Environment=STEAMOS=1
Environment=STEAM_RUNTIME=1
Environment="DBUS_FATAL_WARNINGS=0"
Environment="ADMIN=STEAM_[REDACTED]"
RemainAfterExit=yes
ExecStart=/usr/bin/tmux new-session -s cstrike -d /home/steam/counter-strike1.6/start-server.sh
ExecStop=/usr/bin/tmux send-keys -t cstrike "/quit" Enter
[Install]
WantedBy=multi-user.target