FreeBSD Bugzilla – Attachment 184996 Details for
Bug 221203
rc.subr fails to recognize daemons using interpreters when they use setproctitle
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v2bis
rc.subr2.diff (text/plain), 1.25 KB, created by
Mathieu Arnold
on 2017-08-03 14:51:31 UTC
(
hide
)
Description:
v2bis
Filename:
MIME Type:
Creator:
Mathieu Arnold
Created:
2017-08-03 14:51:31 UTC
Size:
1.25 KB
patch
obsolete
>diff --git etc/rc.subr etc/rc.subr >index 3c66ee9..d58614c 100644 >--- etc/rc.subr >+++ etc/rc.subr >@@ -340,12 +340,12 @@ _find_processes() > _interpbn=${1##*/} > _fp_args='_argv' > _fp_match='case "$_argv" in >- ${_interp}|"${_interp} "*|"[${_interpbn}]"|"${_interpbn}: ${_procname}"*)' >+ ${_interp}|"${_interp} "*|"[${_interpbn}]"|"${_interpbn}: ${_procname}"*${extra_process_match:+|${extra_process_match}})' > else # a normal daemon > _procnamebn=${_procname##*/} > _fp_args='_arg0 _argv' > _fp_match='case "$_arg0" in >- $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]")' >+ $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]"${extra_process_match:+|${extra_process_match}})' > fi > > _proccheck="\ >@@ -729,6 +729,12 @@ check_startmsgs() > # > # extra_commands n List of extra commands supported. > # >+# extra_process_match n A glob used to match the daemon's process, used >+# in _find_processes to see if daemon is still >+# running. >+# Use if the daemon use setproctitle and the >+# default globs cannot find the process. >+# > # pidfile n If set, use check_pidfile $pidfile $command, > # otherwise use check_process $command. > # In either case, only check if $command is set.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221203
:
184994
|
184995
| 184996