24 lines
286 B
Bash
24 lines
286 B
Bash
#!/bin/sh
|
|
# ctdb event script for Netbios Name Services
|
|
|
|
case "$1" in
|
|
startup)
|
|
supervisorctl start winbind
|
|
;;
|
|
|
|
shutdown)
|
|
supervisorctl stop winbind
|
|
;;
|
|
|
|
monitor)
|
|
if ! out=$(wbinfo -p 2>&1) ; then
|
|
echo "ERROR: wbinfo -p returned error"
|
|
echo "$out"
|
|
exit 1
|
|
fi
|
|
;;
|
|
|
|
esac
|
|
|
|
exit 0
|