aboutsummaryrefslogtreecommitdiffstats
path: root/testing/radicale/radicale.initd
blob: de89f2de1e7b383e3429b368b5e728f2f87a3f4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/openrc-run
supervisor=supervise-daemon

name=radicale
description="A simple CalDAV (calendar) and CardDAV (contact) server"

command=/usr/bin/radicale
command_args_foreground="--foreground"

command_user=radicale:radicale

depend() {
	use net
	need localmount
}

pre_start() {
	checkpath --directory --owner radicale /var/lib/radicale
	checkpath --directory --owner radicale /var/log/radicale
	checkpath --file --owner root:radicale --mode 0640 /etc/radicale/config
	checkpath --file --owner root:radicale --mode 0640 /etc/radicale/logging
}