blob: ee8c36f7a5e0f747f00f7e85cdfec5982f128a27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/sbin/openrc-run
supervisor=supervise-daemon
name=miniflux
command="/usr/bin/$name"
command_args="$miniflux_opts"
command_user="miniflux:miniflux"
pidfile="/run/$name.pid"
start_stop_daemon_args="--stdout $miniflux_log_file --stderr $miniflux_log_file"
depend() {
need net
after firewall
}
start_pre() {
checkpath -f -m 0644 -o ${SVCNAME}:${SVCNAME} "$miniflux_log_file"
[ -f "/etc/conf.d/${RC_SVCNAME}" ] && checkpath --file --mode 0600 --owner root:root "/etc/conf.d/${RC_SVCNAME}"
}
|