3 # shellcheck disable=SC2034
4 # Used in expected output
7 if [ "$1" != "down" ]; then
9 debug
"Marking Netbios name services as up, listening and managed by CTDB"
11 # All possible service names for all known distros.
12 for i
in "nmb" "nmbd"; do
13 service
"$i" force-started
16 debug
"Marking Netbios name services as down, not listening and not managed by CTDB"
18 # All possible service names for all known distros.
19 for i
in "nmb" "nmbd"; do
20 service
"$i" force-stopped