Displaying 1 result from an estimated 1 matches for "rmfail".
Did you mean:
rmail
1999 Jan 25
2
Samba, NT, and transient network failures
...nly, thus we cannot grab the process name
# from ps or ptree or whatever!]
#
# Replace ptree(1) with ps(1) on non-Solaris systems
/usr/proc/bin/ptree $PID|grep smb > /dev/null 2>&1 || {
# ... If not just remove the pid file and go on
rm "$PID_FILE" || status=rmfail
continue
}
# Ok, kill the old smbd
print -u2 "$SELF: sending SIGTERM to $PID on behalf of $SMBUSER@SMBCLIENT for $SMBSERVER:$SMBSERVICE"
kill -TERM $PID
# Wait for the old smbd to exit
/usr/proc/bin/pwait $PID
done
# There's no pid file now so we can creat...