ctdb-tests: Avoid ShellCheck warnings
[Samba.git] / ctdb / tests / UNIT / eventscripts / scripts / 48.netbios.sh
blob6efcd8ada87ee63bab57aabbec889facbe9772af
1 setup()
3 # shellcheck disable=SC2034
4 # Used in expected output
5 service_name="netbios"
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
14 done
15 else
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
21 done