22 lines
482 B
SYSTEMD
22 lines
482 B
SYSTEMD
|
[Unit]
|
||
|
Description=FreeHL-Gearbox
|
||
|
|
||
|
[Service]
|
||
|
ExecReload=/bin/kill $MAINPID
|
||
|
KillMode=process
|
||
|
Restart=on-failure
|
||
|
|
||
|
; You want to adjust these for your user, this example assumes debian
|
||
|
User=debian
|
||
|
Environment="HOME=/home/debian"
|
||
|
WorkingDirectory=/home/debian/halflife/
|
||
|
ExecStart=/home/debian/halflife/fteqw-sv64 -halflife -game gearbox
|
||
|
|
||
|
PrivateTmp=true
|
||
|
ProtectHome=false
|
||
|
ProtectSystem=full
|
||
|
PrivateDevices=false
|
||
|
CapabilityBoundingSet=~CAP_SYS_ADMIN
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|