summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-12-04 22:53:48 +0100
committerThomas Deutschmann <whissi@gentoo.org>2019-03-07 22:00:47 +0100
commit6f6b42f6f6efdd9ddfb0bb39111292cb2c6d6c2b (patch)
tree65731b736d787b90cec34663e6257be0601c6e5c /www-apps/radicale/files
parentwww-apps/radicale: Version bump to 2.1.11 (diff)
downloadgentoo-6f6b42f6f6efdd9ddfb0bb39111292cb2c6d6c2b.tar.gz
gentoo-6f6b42f6f6efdd9ddfb0bb39111292cb2c6d6c2b.tar.bz2
gentoo-6f6b42f6f6efdd9ddfb0bb39111292cb2c6d6c2b.zip
www-apps/radicale: log stdout and stderr to syslog
Radicale in default sends all its logs to stderr and stdout. This redirect them to syslog. Bug: https://bugs.gentoo.org/672534 Signed-off-by: Karel Kočí <cynerd@email.cz> Closes: https://github.com/gentoo/gentoo/pull/10574 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'www-apps/radicale/files')
-rw-r--r--www-apps/radicale/files/radicale-r1.init.d27
1 files changed, 27 insertions, 0 deletions
diff --git a/www-apps/radicale/files/radicale-r1.init.d b/www-apps/radicale/files/radicale-r1.init.d
new file mode 100644
index 000000000000..9e2ddb7c510c
--- /dev/null
+++ b/www-apps/radicale/files/radicale-r1.init.d
@@ -0,0 +1,27 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# 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 \
+ --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 $?
+}