hi, i installed the debian 5.0 amd64 packages from
http://download.opensuse.org/repositories/server:/ha-clustering/Debian_5.0/amd64/ i noticed that a clean shutdown of openais/pacemaker by using "/etc/init.d/openais stop" did not work. digging in the initscripts, i found the following do stop procedure: > 52 do_stop() > 53 { > 54 # Return > 55 # 0 if daemon has been stopped > 56 # 1 if daemon was already stopped > 57 # 2 if daemon could not be stopped > 58 # other if a failure occurred > 59 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --name > $NAME > 60 RETVAL="$?" > 61 [ "$RETVAL" = 2 ] && return 2 > 62 # Wait for children to finish too if this is a daemon that forks > 63 # and if the daemon is only ever run from this initscript. > 64 # If the above conditions are not satisfied then add some other > code > 65 # that waits for the process to drop all resources that could be > 66 # needed by services started subsequently. A last resort is to > 67 # sleep for some time. > 68 start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 > --exec $DAEMON > 69 [ "$?" = 2 ] && return 2 > 70 # Many daemons don't delete their pidfiles when they exit. > 71 rm -f $PIDFILE > 72 return "$RETVAL" > 73 } changing line 59 to > 59 start-stop-daemon --stop --quiet --retry=INT/30/KILL/5 --name > $NAME solved the issue and openais/pacemaker now shutdown as expected. can anyone explain a) why TERM is used and why b) there is another start-stop-daemon --stop round with 0/30/KILL/5 ? moreover, where you got that script from? i could not find the file in the hg repository. thank you, raoul ps. cc to fabio, the ubuntu openais maintainer and author of the init script. -- ____________________________________________________________________ DI (FH) Raoul Bhatia M.Sc. email. r.bha...@ipax.at Technischer Leiter IPAX - Aloy Bhatia Hava OEG web. http://www.ipax.at Barawitzkagasse 10/2/2/11 email. off...@ipax.at 1190 Wien tel. +43 1 3670030 FN 277995t HG Wien fax. +43 1 3670030 15 ____________________________________________________________________ _______________________________________________ Pacemaker mailing list Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker