[Bug 1038139] Re: Missing running check on init script

2015-04-17 Thread Mathew Hodson
** Tags removed: removal-candidate verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2015-04-17 Thread Mathew Hodson
** Tags removed: removal-candidate verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2015-04-06 Thread Mathew Hodson
** Description changed:

- 
- SRU Justification:
- Impact: 'service haproxy stop' returns 4 if haproxy was already stopped.
- Development fix: check whether haproxy is running before trying to kill it
- Stable fix: same as development fix
- Test Case:
-   sudo service haproxy start
-   sudo killall -9 haproxy
-   sudo service haproxy stop
-   echo $?
-   ~= this should print 0, not 4
-   sudo service haproxy start
-   sudo service haproxy stop
-   ~= make sure this still correctly prints 0.
- Regression potential: if done wrongly we could further break the haproxy 
service stop.
- 
+ [Impact]
+ 
+ 'service haproxy stop' returns 4 if haproxy was already stopped.
+ 
+ [Test Case]
+ 
+ sudo service haproxy start
+ sudo killall -9 haproxy
+ sudo service haproxy stop
+ echo $?
+ ~= this should print 0, not 4
+ sudo service haproxy start
+ sudo service haproxy stop
+ ~= make sure this still correctly prints 0
+ 
+ [Regression Potential]
+ 
+ if done wrongly we could further break the haproxy service stop.
+ 
+ [Other Info]
+ 
  Hi, this is the relevant version information:
  
  # lsb_release -rd
  Description:Ubuntu 12.04 LTS
  Release:12.04
  dpkg -l haproxy|tail -1
  ii  haproxy 1.4.18-0ubuntu1 
fast and reliable load balancing reverse proxy
  
  When I issue a stop to haproxy via the init script, on line 49 it tries to 
kill the process and returns 4 in case of failure, which then after iis the 
exit status of the script itself.
  There are many reasons why stopping a process may fail, one of them is that 
the process wasn't actually running. In that case, I think the exit status of 
stop should be 0, since the process is stopped.
  This caused problems in the following scenario:  haproxy governed by 
pacemaker if the haproxy process stops abruptly for some reason (crash, 
oom-killer), pacemaker will try to stop and start it again, but it will fail to 
stop (exit 4, expected 0).
  To work around this, I added a check on the init script to see if the process 
was running, see patch attached.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2015-04-06 Thread Mathew Hodson
** Description changed:

- 
- SRU Justification:
- Impact: 'service haproxy stop' returns 4 if haproxy was already stopped.
- Development fix: check whether haproxy is running before trying to kill it
- Stable fix: same as development fix
- Test Case:
-   sudo service haproxy start
-   sudo killall -9 haproxy
-   sudo service haproxy stop
-   echo $?
-   ~= this should print 0, not 4
-   sudo service haproxy start
-   sudo service haproxy stop
-   ~= make sure this still correctly prints 0.
- Regression potential: if done wrongly we could further break the haproxy 
service stop.
- 
+ [Impact]
+ 
+ 'service haproxy stop' returns 4 if haproxy was already stopped.
+ 
+ [Test Case]
+ 
+ sudo service haproxy start
+ sudo killall -9 haproxy
+ sudo service haproxy stop
+ echo $?
+ ~= this should print 0, not 4
+ sudo service haproxy start
+ sudo service haproxy stop
+ ~= make sure this still correctly prints 0
+ 
+ [Regression Potential]
+ 
+ if done wrongly we could further break the haproxy service stop.
+ 
+ [Other Info]
+ 
  Hi, this is the relevant version information:
  
  # lsb_release -rd
  Description:Ubuntu 12.04 LTS
  Release:12.04
  dpkg -l haproxy|tail -1
  ii  haproxy 1.4.18-0ubuntu1 
fast and reliable load balancing reverse proxy
  
  When I issue a stop to haproxy via the init script, on line 49 it tries to 
kill the process and returns 4 in case of failure, which then after iis the 
exit status of the script itself.
  There are many reasons why stopping a process may fail, one of them is that 
the process wasn't actually running. In that case, I think the exit status of 
stop should be 0, since the process is stopped.
  This caused problems in the following scenario:  haproxy governed by 
pacemaker if the haproxy process stops abruptly for some reason (crash, 
oom-killer), pacemaker will try to stop and start it again, but it will fail to 
stop (exit 4, expected 0).
  To work around this, I added a check on the init script to see if the process 
was running, see patch attached.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2015-01-13 Thread Mathew Hodson
** Tags added: precise

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2015-01-13 Thread Mathew Hodson
** Tags added: precise

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-10-08 Thread Launchpad Bug Tracker
** Branch linked: lp:debian/haproxy

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-10-08 Thread Launchpad Bug Tracker
** Branch linked: lp:debian/haproxy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-25 Thread Brian Murray
Hello Ariel, or anyone else affected,

Accepted haproxy into trusty-proposed. The package will build now and be
available at http://launchpad.net/ubuntu/+source/haproxy/1.4.24-2ubuntu1
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: haproxy (Ubuntu Trusty)
   Status: Confirmed = Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-25 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/trusty-proposed/haproxy

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-25 Thread Brian Murray
Hello Ariel, or anyone else affected,

Accepted haproxy into precise-proposed. The package will build now and
be available at
http://launchpad.net/ubuntu/+source/haproxy/1.4.18-0ubuntu1.3 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: haproxy (Ubuntu Precise)
   Status: Confirmed = Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-25 Thread Launchpad Bug Tracker
** Branch linked: lp:~ubuntu-branches/ubuntu/precise/haproxy/precise-
proposed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-25 Thread Brian Murray
Hello Ariel, or anyone else affected,

Accepted haproxy into trusty-proposed. The package will build now and be
available at http://launchpad.net/ubuntu/+source/haproxy/1.4.24-2ubuntu1
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: haproxy (Ubuntu Trusty)
   Status: Confirmed = Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-25 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/trusty-proposed/haproxy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-25 Thread Brian Murray
Hello Ariel, or anyone else affected,

Accepted haproxy into precise-proposed. The package will build now and
be available at
http://launchpad.net/ubuntu/+source/haproxy/1.4.18-0ubuntu1.3 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: haproxy (Ubuntu Precise)
   Status: Confirmed = Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-25 Thread Launchpad Bug Tracker
** Branch linked: lp:~ubuntu-branches/ubuntu/precise/haproxy/precise-
proposed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-24 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/utopic-proposed/haproxy

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-24 Thread Launchpad Bug Tracker
This bug was fixed in the package haproxy - 1.5.4-1ubuntu1

---
haproxy (1.5.4-1ubuntu1) utopic; urgency=medium

  * haproxy.init: return 0 on stop if haproxy was not running.  (LP: #1038139)
 -- Serge Hallyn serge.hal...@ubuntu.com   Tue, 23 Sep 2014 12:06:17 -0500

** Changed in: haproxy (Ubuntu Utopic)
   Status: Confirmed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-24 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/utopic-proposed/haproxy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-24 Thread Launchpad Bug Tracker
This bug was fixed in the package haproxy - 1.5.4-1ubuntu1

---
haproxy (1.5.4-1ubuntu1) utopic; urgency=medium

  * haproxy.init: return 0 on stop if haproxy was not running.  (LP: #1038139)
 -- Serge Hallyn serge.hal...@ubuntu.com   Tue, 23 Sep 2014 12:06:17 -0500

** Changed in: haproxy (Ubuntu Utopic)
   Status: Confirmed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-23 Thread Serge Hallyn
Updated init patch which I'll be pushing.

--- haproxy.old 2014-09-22 10:52:07.599718882 +
+++ haproxy.new 2014-09-22 10:51:34.815653158 +
@@ -46,7 +46,9 @@
return 0
fi
for pid in $(cat $PIDFILE) ; do
-   /bin/kill $pid || return 4
+if kill -0 $pid 2/dev/null; then
+   /bin/kill $pid || return 4
+fi
done
rm -f $PIDFILE
return 0

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-23 Thread Serge Hallyn
** Description changed:

+ 
+ SRU Justification:
+ Impact: 'service haproxy stop' returns 4 if haproxy was already stopped.
+ Development fix: check whether haproxy is running before trying to kill it
+ Stable fix: same as development fix
+ Test Case:
+   sudo service haproxy start
+   sudo killall -9 haproxy
+   sudo service haproxy stop
+   echo $?
+   ~= this should print 0, not 4
+   sudo service haproxy start
+   sudo service haproxy stop
+   ~= make sure this still correctly prints 0.
+ Regression potential: if done wrongly we could further break the haproxy 
service stop.
+ 
  Hi, this is the relevant version information:
  
  # lsb_release -rd
  Description:Ubuntu 12.04 LTS
  Release:12.04
  dpkg -l haproxy|tail -1
  ii  haproxy 1.4.18-0ubuntu1 
fast and reliable load balancing reverse proxy
  
- When I issue a stop to haproxy via the init script, on line 49 it tries to 
kill the process and returns 4 in case of failure, which then after iis the 
exit status of the script itself. 
+ When I issue a stop to haproxy via the init script, on line 49 it tries to 
kill the process and returns 4 in case of failure, which then after iis the 
exit status of the script itself.
  There are many reasons why stopping a process may fail, one of them is that 
the process wasn't actually running. In that case, I think the exit status of 
stop should be 0, since the process is stopped.
  This caused problems in the following scenario:  haproxy governed by 
pacemaker if the haproxy process stops abruptly for some reason (crash, 
oom-killer), pacemaker will try to stop and start it again, but it will fail to 
stop (exit 4, expected 0).
  To work around this, I added a check on the init script to see if the process 
was running, see patch attached.

** Also affects: haproxy (Ubuntu Precise)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-23 Thread Serge Hallyn
** Changed in: haproxy (Ubuntu Precise)
   Importance: Undecided = High

** Changed in: haproxy (Ubuntu Precise)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-23 Thread Serge Hallyn
Updated init patch which I'll be pushing.

--- haproxy.old 2014-09-22 10:52:07.599718882 +
+++ haproxy.new 2014-09-22 10:51:34.815653158 +
@@ -46,7 +46,9 @@
return 0
fi
for pid in $(cat $PIDFILE) ; do
-   /bin/kill $pid || return 4
+if kill -0 $pid 2/dev/null; then
+   /bin/kill $pid || return 4
+fi
done
rm -f $PIDFILE
return 0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-23 Thread Serge Hallyn
** Description changed:

+ 
+ SRU Justification:
+ Impact: 'service haproxy stop' returns 4 if haproxy was already stopped.
+ Development fix: check whether haproxy is running before trying to kill it
+ Stable fix: same as development fix
+ Test Case:
+   sudo service haproxy start
+   sudo killall -9 haproxy
+   sudo service haproxy stop
+   echo $?
+   ~= this should print 0, not 4
+   sudo service haproxy start
+   sudo service haproxy stop
+   ~= make sure this still correctly prints 0.
+ Regression potential: if done wrongly we could further break the haproxy 
service stop.
+ 
  Hi, this is the relevant version information:
  
  # lsb_release -rd
  Description:Ubuntu 12.04 LTS
  Release:12.04
  dpkg -l haproxy|tail -1
  ii  haproxy 1.4.18-0ubuntu1 
fast and reliable load balancing reverse proxy
  
- When I issue a stop to haproxy via the init script, on line 49 it tries to 
kill the process and returns 4 in case of failure, which then after iis the 
exit status of the script itself. 
+ When I issue a stop to haproxy via the init script, on line 49 it tries to 
kill the process and returns 4 in case of failure, which then after iis the 
exit status of the script itself.
  There are many reasons why stopping a process may fail, one of them is that 
the process wasn't actually running. In that case, I think the exit status of 
stop should be 0, since the process is stopped.
  This caused problems in the following scenario:  haproxy governed by 
pacemaker if the haproxy process stops abruptly for some reason (crash, 
oom-killer), pacemaker will try to stop and start it again, but it will fail to 
stop (exit 4, expected 0).
  To work around this, I added a check on the init script to see if the process 
was running, see patch attached.

** Also affects: haproxy (Ubuntu Precise)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-23 Thread Serge Hallyn
** Changed in: haproxy (Ubuntu Precise)
   Importance: Undecided = High

** Changed in: haproxy (Ubuntu Precise)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-22 Thread James Page
** Also affects: haproxy (Ubuntu Trusty)
   Importance: Undecided
   Status: New

** Also affects: haproxy (Ubuntu Utopic)
   Importance: Undecided
   Status: Confirmed

** Changed in: haproxy (Ubuntu Trusty)
   Status: New = Confirmed

** Changed in: haproxy (Ubuntu Trusty)
   Importance: Undecided = High

** Changed in: haproxy (Ubuntu Utopic)
   Importance: Undecided = High

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-22 Thread Ante Karamatić
Patch

** Patch added: init.patch
   
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+attachment/4211282/+files/init.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-22 Thread Ante Karamatić
This still won't be enough. I suggest something like this:

--- haproxy.old 2014-09-22 10:52:07.599718882 +
+++ haproxy.new 2014-09-22 10:51:34.815653158 +
@@ -46,7 +46,9 @@
return 0
fi
for pid in $(cat $PIDFILE) ; do
-   /bin/kill $pid || return 4
+if [ ! kill -0 $pid ]; then
+   /bin/kill $pid || return 4
+fi
done
rm -f $PIDFILE
return 0

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-22 Thread James Page
** Also affects: haproxy (Ubuntu Trusty)
   Importance: Undecided
   Status: New

** Also affects: haproxy (Ubuntu Utopic)
   Importance: Undecided
   Status: Confirmed

** Changed in: haproxy (Ubuntu Trusty)
   Status: New = Confirmed

** Changed in: haproxy (Ubuntu Trusty)
   Importance: Undecided = High

** Changed in: haproxy (Ubuntu Utopic)
   Importance: Undecided = High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-22 Thread Ante Karamatić
This still won't be enough. I suggest something like this:

--- haproxy.old 2014-09-22 10:52:07.599718882 +
+++ haproxy.new 2014-09-22 10:51:34.815653158 +
@@ -46,7 +46,9 @@
return 0
fi
for pid in $(cat $PIDFILE) ; do
-   /bin/kill $pid || return 4
+if [ ! kill -0 $pid ]; then
+   /bin/kill $pid || return 4
+fi
done
rm -f $PIDFILE
return 0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-09-22 Thread Ante Karamatić
Patch

** Patch added: init.patch
   
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+attachment/4211282/+files/init.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-02-13 Thread Jim Howell
+1.  In a very related vein, the init script exits with status 4 when it
tries to start an already-running haproxy.  Both the stop and start
behaviors are non-standard LSB:  http://linux-
ha.org/wiki/LSB_Resource_Agents

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-02-13 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: haproxy (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1038139] Re: Missing running check on init script

2014-02-13 Thread Jim Howell
+1.  In a very related vein, the init script exits with status 4 when it
tries to start an already-running haproxy.  Both the stop and start
behaviors are non-standard LSB:  http://linux-
ha.org/wiki/LSB_Resource_Agents

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2014-02-13 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: haproxy (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2012-08-17 Thread Ariel Wainer
** Patch added: haproxy.diff
   
https://bugs.launchpad.net/bugs/1038139/+attachment/3265551/+files/haproxy.diff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1038139] Re: Missing running check on init script

2012-08-17 Thread Ubuntu Foundation's Bug Bot
The attachment haproxy.diff of this bug report has been identified as
being a patch.  The ubuntu-reviewers team has been subscribed to the bug
report so that they can review the patch.  In the event that this is in
fact not a patch you can resolve this situation by removing the tag
'patch' from the bug report and editing the attachment so that it is not
flagged as a patch.  Additionally, if you are member of the ubuntu-
reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by
Brian Murray.  Please contact him regarding any issues with the action
taken in this bug report.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs