aboutsummaryrefslogtreecommitdiffstats
path: root/www-apps/miniflux/files/miniflux.initd-r1
diff options
context:
space:
mode:
authorWolfgang Müller2024-10-26 11:28:05 +0200
committerWolfgang Müller2024-10-26 11:28:05 +0200
commit4ccd28754d6b7a553f61837968d3d6ebef87b574 (patch)
tree9446a0a1cd99ecf1ead500317ab885f7182ab003 /www-apps/miniflux/files/miniflux.initd-r1
parent52676f78f098137f61a384cd91a93a6739845b9c (diff)
downloadpramantha-4ccd28754d6b7a553f61837968d3d6ebef87b574.tar.gz
www-apps/miniflux: new package, add 2.2.1
Diffstat (limited to 'www-apps/miniflux/files/miniflux.initd-r1')
-rw-r--r--www-apps/miniflux/files/miniflux.initd-r121
1 files changed, 21 insertions, 0 deletions
diff --git a/www-apps/miniflux/files/miniflux.initd-r1 b/www-apps/miniflux/files/miniflux.initd-r1
new file mode 100644
index 0000000..3185acd
--- /dev/null
+++ b/www-apps/miniflux/files/miniflux.initd-r1
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+: ${MINIFLUX_USER:=miniflux}
+: ${MINIFLUX_GROUP:=nobody}
+: ${MINIFLUX_CONF:=/etc/miniflux.conf}
+
+name="miniflux daemon"
+description="Miniflux Web Server"
+command=/usr/bin/miniflux
+command_args="${miniflux_args} -c ${MINIFLUX_CONF}"
+command_background="true"
+command_user="${MINIFLUX_USER}:${MINIFLUX_GROUP}"
+error_log="/var/log/${RC_SVCNAME}.err"
+pidfile="/run/${RC_SVCNAME}.pid"
+
+start_pre() {
+ checkpath --file --owner "${MINIFLUX_USER}":root --mode 0640 \
+ "${error_log}"
+}