mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
ctdb.init: use detect_init_style() in the init script
and export CTDB_INIT_STYLE, so that event scripts as called by ctdbd can use it. Michael (This used to be ctdb commit 56a10594ea9e44e3f034ac11161fd06e5ae46544)
This commit is contained in:
parent
a6ea1b20e5
commit
7c4ce58ba6
@ -80,16 +80,13 @@ CTDB_OPTIONS="$CTDB_OPTIONS --reclock=$CTDB_RECOVERY_LOCK"
|
||||
CTDB_OPTIONS="$CTDB_OPTIONS --script-log-level=$CTDB_SCRIPT_LOG_LEVEL"
|
||||
}
|
||||
|
||||
if [ "$CTDB_VALGRIND" = "yes" ]; then
|
||||
init_style="valgrind"
|
||||
else if [ -x /sbin/startproc ]; then
|
||||
init_style="suse"
|
||||
else if [ -x /sbin/start-stop-daemon ]; then
|
||||
init_style="ubuntu"
|
||||
else
|
||||
init_style="redhat"
|
||||
fi
|
||||
fi
|
||||
detect_init_style
|
||||
export CTDB_INIT_STYLE
|
||||
|
||||
if [ "x$CTDB_VALGRIND" = "xyes" ]; then
|
||||
init_style="valgrind"
|
||||
else
|
||||
init_style="$CTDB_INIT_STYLE"
|
||||
fi
|
||||
|
||||
reset_retval() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user