๐ Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
name="$SVCNAME"
|
|
|
|
command="{{ (acme_dns_dir, 'acme-dns') | path_join }}"
|
|
|
|
directory="{{ acme_dns_dir }}"
|
|
|
|
command_user="{{ acme_dns_user ~ ':' ~ acme_dns_group }}"
|
|
|
|
pidfile="/var/run/$SVCNAME.pid"
|
|
|
|
command_background=true
|
|
|
|
start_stop_daemon_args="--stdout-logger logger --stderr-logger logger"
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need net
|
|
|
|
use dns
|
|
|
|
before nginx caddy
|
|
|
|
after mariadb postgresql
|
|
|
|
}
|
|
|
|
|
|
|
|
start_pre() {
|
|
|
|
setcap 'cap_net_bind_service=+ep' {{ (acme_dns_dir, 'acme-dns') | path_join | quote }}
|
|
|
|
}
|