diff options
author | Kenton Groombridge <concord@gentoo.org> | 2023-04-02 14:34:34 -0400 |
---|---|---|
committer | Kenton Groombridge <concord@gentoo.org> | 2023-04-02 14:37:35 -0400 |
commit | 34079fa629c8afc2c73b73c9f9dc53c120ba4f41 (patch) | |
tree | dea954fc801d926dc6eeec5d09daf42cd3e29e35 /www-apps/miniflux | |
parent | app-backup/rdiff-backup: backport py3.11 support to current stable (diff) | |
download | gentoo-34079fa629c8afc2c73b73c9f9dc53c120ba4f41.tar.gz gentoo-34079fa629c8afc2c73b73c9f9dc53c120ba4f41.tar.bz2 gentoo-34079fa629c8afc2c73b73c9f9dc53c120ba4f41.zip |
www-apps/miniflux: fix service script
Autocreate the error log file when starting if it does not already
exist.
Signed-off-by: Kenton Groombridge <concord@gentoo.org>
Diffstat (limited to 'www-apps/miniflux')
-rw-r--r-- | www-apps/miniflux/files/miniflux.initd-r1 (renamed from www-apps/miniflux/files/miniflux.initd) | 5 | ||||
-rw-r--r-- | www-apps/miniflux/miniflux-2.0.41-r1.ebuild (renamed from www-apps/miniflux/miniflux-2.0.41.ebuild) | 2 | ||||
-rw-r--r-- | www-apps/miniflux/miniflux-2.0.42-r1.ebuild (renamed from www-apps/miniflux/miniflux-2.0.42.ebuild) | 2 | ||||
-rw-r--r-- | www-apps/miniflux/miniflux-2.0.43-r1.ebuild (renamed from www-apps/miniflux/miniflux-2.0.43.ebuild) | 2 |
4 files changed, 8 insertions, 3 deletions
diff --git a/www-apps/miniflux/files/miniflux.initd b/www-apps/miniflux/files/miniflux.initd-r1 index f8a8c59132da..3185acdfe39b 100644 --- a/www-apps/miniflux/files/miniflux.initd +++ b/www-apps/miniflux/files/miniflux.initd-r1 @@ -14,3 +14,8 @@ 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}" +} diff --git a/www-apps/miniflux/miniflux-2.0.41.ebuild b/www-apps/miniflux/miniflux-2.0.41-r1.ebuild index 4c730663df21..b5c188d0c586 100644 --- a/www-apps/miniflux/miniflux-2.0.41.ebuild +++ b/www-apps/miniflux/miniflux-2.0.41-r1.ebuild @@ -35,7 +35,7 @@ src_install() { newconfd "${FILESDIR}/${PN}.confd" ${PN} - newinitd "${FILESDIR}/${PN}.initd" ${PN} + newinitd "${FILESDIR}/${PN}.initd-r1" ${PN} systemd_dounit "${FILESDIR}/${PN}.service" fowners miniflux:root /etc/${PN}.conf diff --git a/www-apps/miniflux/miniflux-2.0.42.ebuild b/www-apps/miniflux/miniflux-2.0.42-r1.ebuild index 4c730663df21..b5c188d0c586 100644 --- a/www-apps/miniflux/miniflux-2.0.42.ebuild +++ b/www-apps/miniflux/miniflux-2.0.42-r1.ebuild @@ -35,7 +35,7 @@ src_install() { newconfd "${FILESDIR}/${PN}.confd" ${PN} - newinitd "${FILESDIR}/${PN}.initd" ${PN} + newinitd "${FILESDIR}/${PN}.initd-r1" ${PN} systemd_dounit "${FILESDIR}/${PN}.service" fowners miniflux:root /etc/${PN}.conf diff --git a/www-apps/miniflux/miniflux-2.0.43.ebuild b/www-apps/miniflux/miniflux-2.0.43-r1.ebuild index 185b89d61eca..a3c0ff7ef4e8 100644 --- a/www-apps/miniflux/miniflux-2.0.43.ebuild +++ b/www-apps/miniflux/miniflux-2.0.43-r1.ebuild @@ -35,7 +35,7 @@ src_install() { newconfd "${FILESDIR}/${PN}.confd" ${PN} - newinitd "${FILESDIR}/${PN}.initd" ${PN} + newinitd "${FILESDIR}/${PN}.initd-r1" ${PN} systemd_dounit "${FILESDIR}/${PN}.service" fowners miniflux:root /etc/${PN}.conf |