ref: master
pkgs/hidrocor/hidrocor.initd
#!/sbin/openrc-run
name="hidrocor"
description="hidrocor wiki service"
supervisor=supervise-daemon
command="/usr/bin/$name"
command_user="hidrocor:hidrocor"
command_args="$hidrocor_opts"
pidfile="/run/$name.pid"
start_stop_daemon_args="--stdout $hidrocor_log_file --stderr $hidrocor_log_file"
depend() {
need net
after firewall
}
start_pre() {
checkpath -f -m 0644 -o ${SVCNAME}:${SVCNAME} "$hidrocor_log_file"
}