From b9973e1d3e99132db1541d0fb7ed097260b7989c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 3 Jun 2007 17:53:26 +1000 Subject: [PATCH] more portability tweaks in the init script (This used to be ctdb commit 83a1c79e95af93a9ccfe78556ac5692c0315a3e4) --- ctdb/config/ctdb.init | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ctdb/config/ctdb.init b/ctdb/config/ctdb.init index b0735a96ea0..3f6575a2a93 100755 --- a/ctdb/config/ctdb.init +++ b/ctdb/config/ctdb.init @@ -25,6 +25,12 @@ elif [ -f /etc/rc.d/init.d/functions ] ; then . /etc/rc.d/init.d/functions fi +[ -f /etc/rc.status ] && { + . /etc/rc.status + rc_reset + LC_ALL=en_US.UTF-8 +} + # Avoid using root's TMPDIR unset TMPDIR @@ -69,7 +75,7 @@ start() { echo -n $"Starting ctdbd service: " case $init_style in suse) - startproc ctdbd $CTDB_OPTIONS + startproc /usr/sbin/ctdbd $CTDB_OPTIONS rc_status -v ;; redhat) -- 2.47.3