This commit is contained in:
15
roles/fivem/templates/fivem.service.j2
Normal file
15
roles/fivem/templates/fivem.service.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=FiveM Server
|
||||
Documentation=https://git.alexav.gg/alex/homelab
|
||||
|
||||
[Service]
|
||||
ExecStart=../server/run.sh +exec server.cfg
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
WorkingDirectory={{ data_dir }}/fivem/server-data
|
||||
TimeoutSec=0
|
||||
RestartSec=10
|
||||
Restart=always
|
||||
User=alex
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user