summaryrefslogtreecommitdiff
path: root/www-apps/radicale/files/radicale.init.d
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/radicale/files/radicale.init.d')
-rw-r--r--www-apps/radicale/files/radicale.init.d26
1 files changed, 26 insertions, 0 deletions
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 $?
+}