diff options
Diffstat (limited to 'community/mycorrhiza/mycorrhiza.initd')
-rw-r--r-- | community/mycorrhiza/mycorrhiza.initd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/community/mycorrhiza/mycorrhiza.initd b/community/mycorrhiza/mycorrhiza.initd new file mode 100644 index 00000000000..eaad3c10a92 --- /dev/null +++ b/community/mycorrhiza/mycorrhiza.initd @@ -0,0 +1,24 @@ +#!/sbin/openrc-run +supervisor=supervise-daemon + +name="Mycorrhiza Wiki" +description="Lightweight wiki engine based on Git" + +: ${mycorrhiza_opts:="/var/lib/mycorrhiza"} +: ${mycorrhiza_user:="mycorrhiza:mycorrhiza"} + +command=/usr/bin/mycorrhiza +command_args="$mycorrhiza_opts" +command_user="$mycorrhiza_user" +capabilities="^cap_net_bind_service" + +depend() { + need net localmount + after firewall +} + +start_pre() { + # Ensure that log files are owned by the daemon + [ -n "$output_log" ] && checkpath -f "$output_log" -m 644 -o "$command_user" + [ -n "$error_log" ] && checkpath -f "$error_log" -m 644 -o "$command_user" +} |