diff options
Diffstat (limited to 'community/miniflux/miniflux.initd')
-rw-r--r-- | community/miniflux/miniflux.initd | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/community/miniflux/miniflux.initd b/community/miniflux/miniflux.initd index ee8c36f7a5e..522df69cf37 100644 --- a/community/miniflux/miniflux.initd +++ b/community/miniflux/miniflux.initd @@ -1,19 +1,24 @@ #!/sbin/openrc-run -supervisor=supervise-daemon name=miniflux -command="/usr/bin/$name" +description="Miniflux Feed Reader" + +: ${miniflux_opts:="-config-file /etc/miniflux.conf"} +: ${miniflux_log_file:="/var/log/miniflux.log"} + +command="/usr/bin/miniflux" command_args="$miniflux_opts" +command_background="yes" command_user="miniflux:miniflux" -pidfile="/run/$name.pid" -start_stop_daemon_args="--stdout $miniflux_log_file --stderr $miniflux_log_file" +pidfile="/run/${RC_SVCNAME}.pid" +output_log="$miniflux_log_file" +error_log="$miniflux_log_file" depend() { need net - after firewall + after firewall postgresql } 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}" + checkpath -f -m 0644 -o "$command_user" "$miniflux_log_file" } |