Can install happyDomain as a deamon without docker
This commit is contained in:
parent
ff04988f01
commit
a58a122836
7 changed files with 176 additions and 0 deletions
14
roles/happydomain/templates/happydomain.service.j2
Normal file
14
roles/happydomain/templates/happydomain.service.j2
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=happyDomain Domain Managment Server
|
||||
After=network.target nss-lookup.target
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
ExecStart=/usr/bin/happydomain
|
||||
WorkingDirectory={% if happydomain_data_dir != '' %}{{ happydomain_data_dir }}{% else %}/var/lib/happydomain{% if instance_name != 'happyDomain' %}.{{ instance_name }}{% endif %}{% endif %}
|
||||
|
||||
User=happydomain
|
||||
Group=happydomain
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue