Merge pull request #1888 from SimonFair/ntp-fix

Samba update and to use smbcontrol for reload
This commit is contained in:
tom mortensen
2024-10-10 10:37:49 -07:00
committed by GitHub

View File

@@ -155,12 +155,12 @@ samba_stop(){
else
REPLY="Stopped"
# stop gracefully with SIGTERM
run killall smbd nmbd wsdd2 winbindd
run killall --ns $$ smbd nmbd wsdd2 winbindd
samba_waitfor_shutdown
if samba_running; then
REPLY="Killed"
# stop forcibly with SIGKILL
run killall -SIGKILL smbd nmbd wsdd2 winbindd
run killall --ns $$ -SIGKILL smbd nmbd wsdd2 winbindd
samba_waitfor_shutdown
fi
if ! samba_running; then
@@ -186,14 +186,12 @@ samba_restart(){
}
samba_reload(){
killall smbd nmbd wsdd2 winbindd 2>/dev/null
killall --ns $$ wsdd2 2>/dev/null
# update settings
samba_settings
# restart services
$SMBD -D 2>/dev/null
[[ $USE_NETBIOS == yes ]] && $NMBD -D 2>/dev/null
# reload services with smbcontrol
smbcontrol all reload-config 2>/dev/null
[[ $USE_WSD == yes ]] && $WSDD2 -d ${WSD2_OPT## } 2>/dev/null
$WINBINDD -D 2>/dev/null
}
samba_update(){