]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
more portability tweaks in the init script
authorAndrew Tridgell <tridge@samba.org>
Sun, 3 Jun 2007 07:53:26 +0000 (17:53 +1000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 3 Jun 2007 07:53:26 +0000 (17:53 +1000)
(This used to be ctdb commit 83a1c79e95af93a9ccfe78556ac5692c0315a3e4)

ctdb/config/ctdb.init

index b0735a96ea00a0a9c31b506b317b6e3887087f5b..3f6575a2a93a7f301f7dbb965636fa2e58dd7c1f 100755 (executable)
@@ -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)