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.000000000 +0000 +++ /etc/init.d/salt-master 2012-11-13 12:51:34.000000000 +0000 @@ -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