diff options
Diffstat (limited to 'community/gmnisrv/gmnisrv.initd')
-rw-r--r-- | community/gmnisrv/gmnisrv.initd | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/community/gmnisrv/gmnisrv.initd b/community/gmnisrv/gmnisrv.initd new file mode 100644 index 00000000000..cc7c6df3e3a --- /dev/null +++ b/community/gmnisrv/gmnisrv.initd @@ -0,0 +1,14 @@ +#!/sbin/openrc-run +name="gmnisrv" +description="gemini server daemon" +supervisor=supervise-daemon +command=/usr/bin/gmnisrv +command_args="-C $gmnisrv_config" +command_user="gmnisrv:gmnisrv" + +start_pre() { + [ -n "$output_log" ] && checkpath -f "$output_log" -o gmnisrv:gmnisrv + [ -n "$error_log" ] && checkpath -f "$error_log" -o gmnisrv:gmnisrv + certs="$(grep '^store=' "$gmnisrv_config" | cut -d= -f2-)" + checkpath -d "$certs" -o gmnisrv:gmnisrv +} |