2 SYSTEMCTL
=/bin
/systemctl
3 winbind_is_active
=$
($SYSTEMCTL is-active winbind.service
)
4 test "${winbind_is_active}" = "active" ||
exit 0
6 winbind_offline_logon
=$
(testparm
-s --parameter-name "winbind offline logon" 2>/dev
/null
)
7 test "${winbind_offline_logon}" = "Yes" ||
exit 0
11 nmb_is_active
=$
($SYSTEMCTL is-active nmb.service
)
12 if test "${nmb_is_active}" = "active"; then
13 $SYSTEMCTL try-restart nmb.service ||
:
15 /usr
/bin
/smbcontrol winbind online ||
:
18 /usr
/bin
/smbcontrol winbind offline