From 14574090c438b7a0b26428bfd4c4c7776fbe0b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 2 Nov 2018 19:01:59 +0100 Subject: www-apps/radicale: redirect stdout and stderr to logger --- www-apps/radicale/files/radicale.init.d | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 www-apps/radicale/files/radicale.init.d (limited to 'www-apps/radicale/files') diff --git a/www-apps/radicale/files/radicale.init.d b/www-apps/radicale/files/radicale.init.d new file mode 100644 index 0000000..2035c8d --- /dev/null +++ b/www-apps/radicale/files/radicale.init.d @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PIDFILE=/var/run/radicale.pid + +depend() { + use net + need localmount +} + +start() { + ebegin "Starting radicale" + start-stop-daemon --start --quiet --background \ + --user radicale \ + --stdout-logger /usr/bin/logger \ + --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 $? +} -- cgit v1.2.3