Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
    npro  
 Modern all-safe Rust Network Protocol library supporting h1, h2, h3, ws, wt sans-IO and with socket IO + tls
git clone https://npro.rs/repo/npro
 
root / assets / surprised.png
Author[]Andy Green <andy@warmcat.com> 2026-06-18 04:29 UTC
Committer[]Andy Green <andy@warmcat.com> 2026-06-18 04:29 UTC
Tree8c5c47e8f5eec023a5e84682e6564d86aa3e44a5   Raw Patch
 
freebsd: update service script
freebsd: update service script
diff --git a/scripts/etc-rc.d-sai_builder-FreeBSD b/scripts/etc-rc.d-sai_builder-FreeBSD index 36868fa..2427fad 100644 --- a/scripts/etc-rc.d-sai_builder-FreeBSD +++ b/scripts/etc-rc.d-sai_builder-FreeBSD @@ -1,18 +1,22 @@ #!/bin/sh # - # PROVIDE: sai_builder # REQUIRE: FILESYSTEMS NETWORK - . /etc/rc.subr - name="sai_builder" desc="Sai CI builder" rcvar="sai_builder_enable" -command="/usr/sbin/daemon" -pidfile="/var/run/${name}.pid" -sai_builder_flags="-S /usr/local/bin/sai-builder" - load_rc_config $name +# Set defaults +: ${sai_builder_enable:="NO"} +: ${sai_builder_args:=""} +pidfile="/var/run/${name}.pid" +command="/usr/sbin/daemon" +# -P writes the daemon supervisor's PID to the pidfile so rc.subr can stop it +# -S redirects the child's stdout/stderr to syslog +# -T sets the syslog tag to the service name +# -r (optional, added here) automatically restarts the child if it crashes +command_args="-P ${pidfile} -r -S -T ${name} /usr/local/bin/sai-builder ${sai_builder_args}" run_rc_command "$1" +
Page fetched 0s ago, creation time: 1ms (vhost etag hits: 0%, cache hits: 0%)