initial import
This commit is contained in:
19
radicale/radicale.initd
Normal file
19
radicale/radicale.initd
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/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}
|
||||
}
|
||||
Reference in New Issue
Block a user