always recreate fivem systemd service
All checks were successful
Deploy Containers / Prepare (push) Successful in 50s
All checks were successful
Deploy Containers / Prepare (push) Successful in 50s
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user