๐Ÿ“— 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.

21 lines
526 B

2 years ago
#!/sbin/openrc-run
name="$SVCNAME"
command="{{ (acme_dns_dir, 'acme-dns') | path_join }}"
2 years ago
directory="{{ acme_dns_dir }}"
command_user="{{ acme_dns_user ~ ':' ~ acme_dns_group }}"
2 years ago
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
2 years ago
}
start_pre() {
setcap 'cap_net_bind_service=+ep' {{ (acme_dns_dir, 'acme-dns') | path_join | quote }}
2 years ago
}