From: Andrew Tridgell Date: Sun, 3 Jun 2007 07:53:26 +0000 (+1000) Subject: more portability tweaks in the init script X-Git-Tag: tevent-0.9.20~348^2~2584 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9973e1d3e99132db1541d0fb7ed097260b7989c;p=thirdparty%2Fsamba.git more portability tweaks in the init script (This used to be ctdb commit 83a1c79e95af93a9ccfe78556ac5692c0315a3e4) --- 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)