Files
extra/radicale/radicale.initd
2025-06-22 20:39:04 -05:00

20 lines
430 B
Plaintext

#!/sbin/openrc-run
name=radicale
description="A simple CalDAV (calendar) and CardDAV (contact) server"
pidfile="/run/${RC_SVCNAME}.pid"
command=/usr/bin/radicale
command_user=radicale:radicale
command_background=true
depend() {
use net
need localmount
}
start_pre() {
checkpath --directory --owner "$command_user" /var/{lib,log}/radicale
checkpath --file --owner root:radicale --mode 0640 /etc/radicale/{config,logging}
}