gentoo-overlay/app-office/radicale/files/radicale.init.d

27 lines
550 B
D
Raw Normal View History

2011-03-13 13:06:19 +01:00
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
PIDFILE=/var/run/radicale.pid
depend() {
use net
need localmount
}
start() {
ebegin "Starting radicale"
start-stop-daemon --start --quiet --background \
--pidfile ${PIDFILE} --make-pidfile \
--exec /usr/bin/radicale -- --foreground
eend $?
}
stop() {
ebegin "Stopping radicale"
start-stop-daemon --stop --quiet \
--pidfile ${PIDFILE}
eend $?
}