diff options
author | Karel Kočí <cynerd@email.cz> | 2018-11-02 19:01:59 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-11-02 19:02:42 +0100 |
commit | 14574090c438b7a0b26428bfd4c4c7776fbe0b0b (patch) | |
tree | 6a7a1248397a361747db3fa0df4d49501b4e3b84 /www-apps/radicale/files | |
parent | d6d8f0c8e4e47b388a73f1534786a6f001a22bd2 (diff) | |
download | gentoo-personal-overlay-14574090c438b7a0b26428bfd4c4c7776fbe0b0b.tar.gz gentoo-personal-overlay-14574090c438b7a0b26428bfd4c4c7776fbe0b0b.tar.bz2 gentoo-personal-overlay-14574090c438b7a0b26428bfd4c4c7776fbe0b0b.zip |
www-apps/radicale: redirect stdout and stderr to logger
Diffstat (limited to 'www-apps/radicale/files')
-rw-r--r-- | www-apps/radicale/files/radicale.init.d | 28 |
1 files changed, 28 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..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 $? +} |