1 2 3 4 5 6 7 8 9 10
#!/sbin/openrc-run name="sh-api" description="Search engine API" supervisor=supervise-daemon command=/usr/bin/sh-api command_user=searchhut:searchhut start_pre() { [ -n "$error_log" ] && checkpath -f -o $command_user "$error_log" }