diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-28 01:27:54 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-28 01:27:54 +0100 |
commit | 02ceacddddac2b3b708b06e25ac30c2da893fa5f (patch) | |
tree | 719ecee8ebf357dd50ff9ac720bed4b8b7a46bdc /www-apps/radicale/files/radicale.init.d | |
parent | 5ecfd9d359f7b95f9ac143450ee6342943f03e08 (diff) | |
download | gentoo-personal-overlay-02ceacddddac2b3b708b06e25ac30c2da893fa5f.tar.gz gentoo-personal-overlay-02ceacddddac2b3b708b06e25ac30c2da893fa5f.tar.bz2 gentoo-personal-overlay-02ceacddddac2b3b708b06e25ac30c2da893fa5f.zip |
Try to update radicale
Diffstat (limited to 'www-apps/radicale/files/radicale.init.d')
-rw-r--r-- | www-apps/radicale/files/radicale.init.d | 26 |
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 $? +} |