mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-20 16:45:01 +08:00
FreeBSD init: Remove unnecessary daemon -u option (#1924)
The rc.subr framework already takes care of substituting user. So, using daemon's -u option is double user-substitution and fails if $caddy_user is non-root.
This commit is contained in:
parent
74d4fd3c29
commit
34a34c565d
2
dist/init/freebsd/caddy
vendored
2
dist/init/freebsd/caddy
vendored
|
@ -62,7 +62,7 @@ fi
|
|||
pidfile="/var/run/${name}.pid"
|
||||
procname="${caddy_bin_path}" #enabled builtin pid checking for start / stop
|
||||
command="/usr/sbin/daemon"
|
||||
command_args="-u ${caddy_user} -p ${pidfile} /usr/bin/env ${caddy_env} ${procname} -cpu ${caddy_cpu} -log stdout -conf ${caddy_config_path} -agree -email ${caddy_cert_email} < /dev/null >> ${caddy_logfile} 2>&1"
|
||||
command_args="-p ${pidfile} /usr/bin/env ${caddy_env} ${procname} -cpu ${caddy_cpu} -log stdout -conf ${caddy_config_path} -agree -email ${caddy_cert_email} < /dev/null >> ${caddy_logfile} 2>&1"
|
||||
|
||||
start_precmd="caddy_startprecmd"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user