From 02ceacddddac2b3b708b06e25ac30c2da893fa5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 28 Jan 2018 01:27:54 +0100 Subject: Try to update radicale --- www-apps/radicale/files/radicale.init.d | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..a59e8d3 --- /dev/null +++ b/www-apps/radicale/files/radicale.init.d @@ -0,0 +1,26 @@ +#!/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 \ + --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