blob: e9bbe31faf588aed9a649d0c8a1d45f0408d794a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
setup ()
{
service_name="winbind"
if [ "$1" != "down" ] ; then
debug "Marking Winbind service as up and managed by CTDB"
service "winbind" force-started
export FAKE_WBINFO_FAIL="no"
else
debug "Marking Winbind service as down and not managed by CTDB"
service "winbind" force-stopped
export FAKE_WBINFO_FAIL="yes"
fi
}
wbinfo_down ()
{
debug "Making wbinfo commands fail"
FAKE_WBINFO_FAIL="yes"
}
|