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.
19 lines
422 B
19 lines
422 B
2 years ago
|
#!/sbin/openrc-run
|
||
|
|
||
|
name="$SVCNAME"
|
||
|
command="{{ acme_dns_dir }}/$SVCNAME"
|
||
|
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
|
||
|
}
|
||
|
|
||
|
start_pre() {
|
||
|
setcap 'cap_net_bind_service=+ep' {{ acme_dns_dir }}/$SVCNAME
|
||
|
}
|