summaryrefslogtreecommitdiff
path: root/www-apps/radicale/files/radicale-r2.init.d
blob: 23da22d7fc9e96d359f3556843976b9608662118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/sbin/openrc-run
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

PIDFILE=/run/radicale.pid

depend() {
	need localmount
}

start() {
	ebegin "Starting radicale"
		start-stop-daemon --start --quiet --background \
		--user radicale \
		--umask 0027 \
		--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 $?
}