diff --git etc/rc.subr etc/rc.subr index 3c66ee9..f89abe9 100644 --- etc/rc.subr +++ etc/rc.subr @@ -348,6 +348,10 @@ _find_processes() $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]")' fi + if [ -n "${extra_process_match}" ]; then + $_fp_match=$_fp_match'|${extra_process_match}' + fi + _proccheck="\ $PS 2>/dev/null -o pid= -o jid= -o command= $_psargs"' | while read _npid _jid '"$_fp_args"'; do @@ -729,6 +733,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.