services: Merge some service templates
This commit is contained in:
parent
051eef5bbf
commit
4c8fae0657
6 changed files with 23 additions and 53 deletions
18
roles/services/templates/generic.service
Normal file
18
roles/services/templates/generic.service
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Managed by Ansible
|
||||
|
||||
[Unit]
|
||||
Description={{ description }}
|
||||
After=network.target
|
||||
{% if requires|default('') %}
|
||||
Requires={{ requires }}
|
||||
{% endif %}
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart={{ exec }}
|
||||
Restart=always
|
||||
RestartSec=10s
|
||||
DynamicUser=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue