FreeBSD Bugzilla – Attachment 182791 Details for
Bug 217297
[www/fcgiwrap] Stale fcgiwrap processes left even after service is stopped
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Use a custom stop command that kills the pgrp
fcgiwrap_rcd_killpgrp.diff (text/plain), 849 bytes, created by
Lawrence Stewart
on 2017-05-22 04:07:51 UTC
(
hide
)
Description:
Use a custom stop command that kills the pgrp
Filename:
MIME Type:
Creator:
Lawrence Stewart
Created:
2017-05-22 04:07:51 UTC
Size:
849 bytes
patch
obsolete
>--- fcgiwrap.orig 2017-05-22 12:19:46.312166000 +1000 >+++ fcgiwrap 2017-05-22 13:54:56.711037000 +1000 >@@ -87,7 +87,18 @@ > fi > } > >-fcgiwrap_cleansocket() { >+fcgiwrap_stop() { >+ fcgiwrap_pgrp=$(/bin/ps -o ppid= $(cat ${pidfile})) >+ if [ -z "$fcgiwrap_pgrp" ] || ! kill -0 $fcgiwrap_pgrp; then >+ [ -n "$rc_fast" ] && return 0 >+ _run_rc_notrunning >+ return 1 >+ fi >+ fcgiwrap_pgrp_pids=$(/bin/pgrep -d ' ' -g ${fcgiwrap_pgrp}) >+ echo "Stopping ${name}." >+ kill -TERM -- -${fcgiwrap_pgrp} >+ wait_for_pids ${fcgiwrap_pgrp_pids} >+ > # Workaround the fact that fcgiwrap doesn't cleanup his socket at stopping > case ${fcgiwrap_socket} in > unix*) >@@ -104,7 +115,7 @@ > command="/usr/sbin/daemon" > start_precmd="fcgiwrap_precmd" > start_postcmd="fcgiwrap_postcmd" >-stop_postcmd="fcgiwrap_cleansocket" >+stop_cmd="fcgiwrap_stop" > > load_rc_config $name >
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 217297
: 182791