aports/testing/radicale/radicale.initd
2019-08-22 00:28:55 -03:00

23 lines
550 B
Plaintext

#!/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
}