always recreate fivem systemd service
All checks were successful
Deploy Containers / Prepare (push) Successful in 50s

This commit is contained in:
2025-10-15 23:39:40 -04:00
parent 18a7d431ef
commit 2feb2a9cfb
2 changed files with 7 additions and 2 deletions

View File

@@ -49,12 +49,17 @@
dest: "{{ data_dir }}/fivem/server-data/server.cfg"
when: not fivem_server_data.stat.exists
- name: Stop & remove FiveM systemd service
become: yes
shell: |
systemctl stop fivem.service &&
rm /etc/systemd/system/fivem.service
- name: Create FiveM systemd service
become: yes
template:
src: fivem.service.j2
dest: "/etc/systemd/system/fivem.service"
when: not fivem_systemd.stat.exists
- name: Enable FiveM systemd service
become: yes

View File

@@ -9,7 +9,7 @@ WorkingDirectory={{ data_dir }}/fivem/server-data
TimeoutSec=0
RestartSec=10
Restart=always
User=alex
User=root
[Install]
WantedBy=multi-user.target