[Netpass-devel] NetPass/install.d/init.d mysqld,1.2,1.3 ndbmgmd,1.2,1.3 netpass,1.4,1.5 netpassha,1.
Brought to you by:
jeffmurphy
From: jeff m. <jef...@us...> - 2005-08-03 02:44:47
|
Update of /cvsroot/netpass/NetPass/install.d/init.d In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19022/install.d/init.d Modified Files: mysqld ndbmgmd netpass netpassha Log Message: some bug fixes, resetport.pl re-write, appstarter completion, install/initd tweaks Index: mysqld =================================================================== RCS file: /cvsroot/netpass/NetPass/install.d/init.d/mysqld,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mysqld 27 Apr 2005 20:36:48 -0000 1.2 +++ mysqld 3 Aug 2005 02:44:38 -0000 1.3 @@ -73,7 +73,11 @@ [ $ret -eq 0 ] && rm -f /var/lock/subsys/mysqld [ $ret -eq 0 ] && rm -f $datadir/mysql.sock + sleep 10 + killproc mysqld -KILL + killproc mysqld_safe -KILL killproc ndbd + echo return $ret } Index: netpassha =================================================================== RCS file: /cvsroot/netpass/NetPass/install.d/init.d/netpassha,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- netpassha 20 Apr 2005 13:17:02 -0000 1.2 +++ netpassha 3 Aug 2005 02:44:38 -0000 1.3 @@ -13,7 +13,13 @@ # Source networking configuration. . /etc/sysconfig/network -HASCRIPT="hascript.sh" +# specify one of your NetPass servers. currently this script +# isnt smart enough to accept mulitple and try each in turn +# also, specify which redirector this machine is. either +# "1" or "2" + +NPSERVER="npw2.cit.buffalo.edu" +MYTYPE="-r 1" # or "-r 2" [ -f /etc/sysconfig/netpass ] && . /etc/sysconfig/netpass @@ -28,9 +34,10 @@ start() { # Start daemons. - if [ -f ${B}/bin/${HASCRIPT} ] ; then + if [ -f ${B}/bin/interfacecfg.pl ] ; then echo -n $"Starting netpass-ha: " - daemon ${B}/bin/${HASCRIPT} + ${B}/bin/interfacecfg.pl -c "dbi:mysql:database=netpass;host=${NPSERVER}" ${MYTYPE} | /bin/sh 2>&1 >& /dev/null + success echo #[ $RETVAL -eq 0 ] && exit $RETVAL fi @@ -41,6 +48,8 @@ stop() { # at this time, there's no way to shutdown HA + action $"Stopping $prog: " /bin/true + return 0 } Index: ndbmgmd =================================================================== RCS file: /cvsroot/netpass/NetPass/install.d/init.d/ndbmgmd,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ndbmgmd 30 Apr 2005 18:08:04 -0000 1.2 +++ ndbmgmd 3 Aug 2005 02:44:38 -0000 1.3 @@ -3,6 +3,10 @@ # ndb_mgmd Start/Stop the ndb_mgmd. # # chkconfig: 2345 40 60 +# description: MySQL NDB Management Daemon +# +# processname: ndb_mgmd +# pidfile: # # Source function library. . /etc/rc.d/init.d/functions Index: netpass =================================================================== RCS file: /cvsroot/netpass/NetPass/install.d/init.d/netpass,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- netpass 16 May 2005 16:10:43 -0000 1.4 +++ netpass 3 Aug 2005 02:44:38 -0000 1.5 @@ -67,6 +67,11 @@ echo #[ $RETVAL -eq 0 ] && exit $RETVAL + echo -n $"Starting appstarter: " + daemon ${B}/bin/appstarter.pl + echo + #[ $RETVAL -eq 0 ] && exit $RETVAL + return 0 } |