Rev 447: more portability tweaks in the init script in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Sun Jun 3 07:53:26 GMT 2007


------------------------------------------------------------
revno: 447
revision-id: tridge at samba.org-20070603075326-xqewuvbtien3b5dq
parent: tridge at samba.org-20070603073911-b0hoqqxx14tt5x5f
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Sun 2007-06-03 17:53:26 +1000
message:
  more portability tweaks in the init script
modified:
  config/ctdb.init               ctdb.init-20070527204758-biuh7znabuwan3zn-6
=== modified file 'config/ctdb.init'
--- a/config/ctdb.init	2007-06-03 00:29:57 +0000
+++ b/config/ctdb.init	2007-06-03 07:53:26 +0000
@@ -25,6 +25,12 @@
   . /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 @@
 	echo -n $"Starting ctdbd service: "
 	case $init_style in
 	    suse)
-		startproc ctdbd $CTDB_OPTIONS
+		startproc /usr/sbin/ctdbd $CTDB_OPTIONS
 		rc_status -v
 		;;
 	    redhat)



More information about the samba-cvs mailing list