FreeBSD Bugzilla – Attachment 222968 Details for
Bug 254006
net/samba(all versions): rc.d/samba_server stop/restart patch for restart crash
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix samba_server rc.d script to wait for all processes to die
samba_server.patch (text/plain), 946 bytes, created by
Peter Eriksson
on 2021-03-04 08:50:13 UTC
(
hide
)
Description:
Patch to fix samba_server rc.d script to wait for all processes to die
Filename:
MIME Type:
Creator:
Peter Eriksson
Created:
2021-03-04 08:50:13 UTC
Size:
946 bytes
patch
obsolete
>--- samba_server.orig 2021-03-04 09:38:24.177530000 +0100 >+++ samba_server 2021-03-04 09:37:48.721550000 +0100 >@@ -126,11 +126,27 @@ > rcvar=${name}_enable > command="/usr/local/sbin/${name}" > pidfile="${samba_server_piddir}/${name}.pid" >+ masterpid="" >+ if [ "${rc_arg}" = "stop" ] ; then >+ masterpid="`cat ${pidfile}`" >+ fi >+ > # Daemon should be enabled and running > if ( [ -n "${rcvar}" ] && checkyesno "${rcvar}" ) || [ -n "$force_run" ]; then > run_rc_command "${_rc_prefix}${rc_arg}" ${rc_extra_args} > # If any of the commands failed, take it as a global result > result=$((${result} || $?)) >+ >+ if [ "${rc_arg}" = "stop" -a "$masterpid" != "" ] ; then >+ if pgrep -q -x -s "$masterpid"; then >+ echo -n "Waiting for all ${name} subprocesses to terminate..." >+ while pgrep -q -x -s "$masterpid"; do >+ echo -n "." >+ sleep 1 >+ done >+ echo "" >+ fi >+ fi > fi > done > return ${result}
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 254006
: 222968 |
223022