diff options
Diffstat (limited to 'www-apps/radicale')
-rw-r--r-- | www-apps/radicale/files/radicale-r2.init.d | 26 | ||||
-rw-r--r-- | www-apps/radicale/files/radicale-r3.init.d | 27 | ||||
-rw-r--r-- | www-apps/radicale/radicale-3.0.6-r1.ebuild (renamed from www-apps/radicale/radicale-3.0.6.ebuild) | 4 |
3 files changed, 42 insertions, 15 deletions
diff --git a/www-apps/radicale/files/radicale-r2.init.d b/www-apps/radicale/files/radicale-r2.init.d index 6e7d734ebeff..6b1e0b37d952 100644 --- a/www-apps/radicale/files/radicale-r2.init.d +++ b/www-apps/radicale/files/radicale-r2.init.d @@ -5,23 +5,23 @@ PIDFILE=/run/radicale.pid depend() { - need localmount + need localmount } start() { - ebegin "Starting radicale" - start-stop-daemon --start --quiet --background \ - --user radicale \ - --umask 0027 \ - --stderr-logger /usr/bin/logger \ - --pidfile ${PIDFILE} --make-pidfile \ - --exec /usr/bin/radicale -- --foreground - eend $? + ebegin "Starting radicale" + start-stop-daemon --start --quiet --background \ + --user radicale \ + --umask 0027 \ + --stderr-logger /usr/bin/logger \ + --pidfile ${PIDFILE} --make-pidfile \ + --exec /usr/bin/radicale -- --foreground + eend $? } stop() { - ebegin "Stopping radicale" - start-stop-daemon --stop --quiet \ - --pidfile ${PIDFILE} - eend $? + ebegin "Stopping radicale" + start-stop-daemon --stop --quiet \ + --pidfile ${PIDFILE} + eend $? } diff --git a/www-apps/radicale/files/radicale-r3.init.d b/www-apps/radicale/files/radicale-r3.init.d new file mode 100644 index 000000000000..bb0cc5db08b0 --- /dev/null +++ b/www-apps/radicale/files/radicale-r3.init.d @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +PIDFILE=/run/radicale.pid + +depend() { + need localmount +} + +start() { + ebegin "Starting radicale" + start-stop-daemon --start --quiet --background \ + --user radicale \ + --umask 0027 \ + --stderr-logger /usr/bin/logger \ + --pidfile ${PIDFILE} --make-pidfile \ + --exec /usr/bin/radicale + eend $? +} + +stop() { + ebegin "Stopping radicale" + start-stop-daemon --stop --quiet \ + --pidfile ${PIDFILE} + eend $? +} diff --git a/www-apps/radicale/radicale-3.0.6.ebuild b/www-apps/radicale/radicale-3.0.6-r1.ebuild index 9f3474642923..c0d9d9f313b6 100644 --- a/www-apps/radicale/radicale-3.0.6.ebuild +++ b/www-apps/radicale/radicale-3.0.6-r1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="7" +EAPI=7 DISTUTILS_USE_SETUPTOOLS=rdepend PYTHON_COMPAT=( python3_{7..9} ) @@ -37,7 +37,7 @@ python_install_all() { rm README* || die # init file - newinitd "${FILESDIR}"/radicale-r2.init.d radicale + newinitd "${FILESDIR}"/radicale-r3.init.d radicale systemd_dounit "${FILESDIR}/${PN}.service" # directories |