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

20 lines
462 B

2 years ago
#!/sbin/openrc-run
name="blocky"
command="{{ blocky_dir }}/blocky"
command_args="--config {{ blocky_conf_file | quote }}"
directory="{{ blocky_dir }}"
command_user="{{ blocky_user }}:{{ blocky_group }}"
pidfile="/var/run/blocky.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' {{ (blocky_dir ~ '/blocky') | quote }}
}