1 # Hey Emacs, this is a -*- shell-script -*- !!! :-)
3 # Use a "service" command in $PATH if one exists.
6 if _t=$(which "service" 2>/dev/null) ; then
16 if _t=$(which "service" 2>/dev/null) ; then
26 set_proc_maybe () { : ; }
32 cat "$FAKE_PROC_NET_BONDING/${1##*/}"
34 sys/net/ipv4/conf/all/arp_filter)
37 sys/net/ipv4/conf/all/promote_secondaries)
41 echo "$FAKE_NFSD_THREAD_PIDS" | wc -w
44 echo "[<ffffffff87654321>] fake_stack_trace_for_pid_${1}+0x0/0xff"
47 echo "$FAKE_PROC_MEMINFO"
50 echo "get_proc: \"$1\" not implemented"
58 iptables_wrapper () { : ; }
60 # Do not actually background - we want to see the output
61 background_with_logging ()
63 "$@" 2>&1 </dev/null | sed -e 's@^@\&@'
66 CTDB_INIT_STYLE="redhat"
67 PATH="${EVENTSCRIPTS_PATH}:$PATH"