]> Pileus Git - ~andy/sunrise/blob - app-office/radicale/files/radicale.init.d
dev-libs/liblouis: Add ~amd64 keyword, EAPI bump
[~andy/sunrise] / app-office / radicale / files / radicale.init.d
1 #!/sbin/runscript
2 # Copyright 1999-2012 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: $
5
6 PIDFILE=/var/run/radicale.pid
7
8 depend() {
9     use net
10     need localmount
11 }
12
13 start() {
14     ebegin "Starting radicale"
15         start-stop-daemon --start --quiet --background \
16         --user radicale \
17         --pidfile ${PIDFILE} --make-pidfile \
18         --exec /usr/bin/radicale -- --foreground
19     eend $?
20 }
21
22 stop() {
23     ebegin "Stopping radicale"
24         start-stop-daemon --stop --quiet \
25         --pidfile ${PIDFILE}
26     eend $?
27 }