Bug#693133: salt-master: Master fails to restart: The ports are not available to bind

2012-11-13 Thread Andriy Senkovych
Package: salt-master
Severity: normal
Tags: patch

Dear Maintainer,

Master fails to restart with 'restart' command with error mesasge mentioned in
subject. Received output is the following:

[ ok ] Restarting salt master control daemon: salt-master[] Stopping salt 
master control daemon 
[] Starting salt-master daemon: :The ports are not available to bind

It is possible to start salt master successfully right after this failed
restart. It is possibly that stop operation exits before the process is 
actually dead.

-- 
WBR, Andriy Senkovych
--- salt-master	2012-11-13 12:52:23.0 +
+++ /etc/init.d/salt-master	2012-11-13 12:51:34.0 +
@@ -43,7 +43,7 @@
 
 do_stop() {
 log_begin_msg Stopping $DESC ...
-start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
+start-stop-daemon --stop --quiet --oknodo --retry=TERM/30/KILL/5 --pidfile $PIDFILE
 RC=$?
 [ $RC -eq 0 ]  rm -f $PIDFILE
 log_end_msg $RC


Bug#693133: salt-master: Master fails to restart: The ports are not available to bind

2012-11-13 Thread Ulrich Dangel
Can you please test the latest version (0.10.4-1) as it should already include 
your patch.

On 13 Nov 2012, at 12:55, Andriy Senkovych jolly_ro...@itblog.org.ua wrote:

 Package: salt-master
 Severity: normal
 Tags: patch
 
 Dear Maintainer,
 
 Master fails to restart with 'restart' command with error mesasge mentioned in
 subject. Received output is the following:
 
 [ ok ] Restarting salt master control daemon: salt-master[] Stopping salt 
 master control daemon 
 [] Starting salt-master daemon: :The ports are not available to bind
 
 It is possible to start salt master successfully right after this failed
 restart. It is possibly that stop operation exits before the process is 
 actually dead.
 
 -- 
 WBR, Andriy Senkovych
 salt-master.patch


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org