Add service install, enable by default
This commit is contained in:
parent
eb5c6a62b0
commit
a206c16f43
@ -35,3 +35,6 @@ ExecStop=/bin/sleep 10
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -93,3 +93,9 @@
|
||||
when: not stat_mcroot_forgejar.stat.exists
|
||||
become: yes
|
||||
become_user: minecraft
|
||||
- name: Enable service
|
||||
systemd:
|
||||
name: "minecraft@{{ mcname }}"
|
||||
enabled: yes
|
||||
state: started
|
||||
become: yes
|
||||
|
Loading…
Reference in New Issue
Block a user