[Python-modules-commits] r32142 - in packages/celery/trunk/debian/patches (lsb-init.patch)

fladi-guest at users.alioth.debian.org fladi-guest at users.alioth.debian.org
Thu Apr 2 14:50:04 UTC 2015


    Date: Thursday, April 2, 2015 @ 14:50:03
  Author: fladi-guest
Revision: 32142

Refresh patches.

Modified:
  packages/celery/trunk/debian/patches/lsb-init.patch

Modified: packages/celery/trunk/debian/patches/lsb-init.patch
===================================================================
--- packages/celery/trunk/debian/patches/lsb-init.patch	2015-04-02 14:49:46 UTC (rev 32141)
+++ packages/celery/trunk/debian/patches/lsb-init.patch	2015-04-02 14:50:03 UTC (rev 32142)
@@ -8,7 +8,7 @@
 
 --- a/extra/generic-init.d/celerybeat
 +++ b/extra/generic-init.d/celerybeat
-@@ -15,11 +15,15 @@
+@@ -15,6 +15,7 @@
  # Default-Start:     2 3 4 5
  # Default-Stop:      0 1 6
  # Short-Description: celery periodic task scheduler
@@ -16,23 +16,15 @@
  ### END INIT INFO
  
  # Cannot use set -e/bash -e since the kill -0 command will abort
- # abnormally in the absence of a valid process ID.
- #set -e
-+
-+. /lib/lsb/init-functions
-+
- VERSION=10.0
- echo "celery init v${VERSION}."
+@@ -85,6 +86,7 @@
  
-@@ -85,6 +89,7 @@
- 
  scripts=""
  
 +
  if test -f /etc/default/celeryd; then
      scripts="/etc/default/celeryd"
      _config_sanity /etc/default/celeryd
-@@ -106,6 +111,13 @@
+@@ -106,6 +108,13 @@
  DEFAULT_LOG_FILE="/var/log/celery/beat.log"
  DEFAULT_LOG_LEVEL="INFO"
  DEFAULT_CELERYBEAT="$CELERY_BIN beat"
@@ -46,37 +38,6 @@
  
  CELERYBEAT=${CELERYBEAT:-$DEFAULT_CELERYBEAT}
  CELERYBEAT_LOG_LEVEL=${CELERYBEAT_LOG_LEVEL:-${CELERYBEAT_LOGLEVEL:-$DEFAULT_LOG_LEVEL}}
-@@ -246,7 +258,16 @@
-                 --pidfile="$CELERYBEAT_PID_FILE"
- }
- 
--
-+status () {
-+    pid=$(cat "$CELERYBEAT_PID_FILE")
-+    kill -0 $pid 1>/dev/null 2>&1
-+    if [ $? -eq 0 ]; then
-+        echo "celerybeat running"
-+    else
-+        echo "celerybeat not running"
-+        exit 1
-+    fi
-+}
- 
- case "$1" in
-     start)
-@@ -276,8 +297,11 @@
-         check_dev_null
-         check_paths
-     ;;
-+    status)
-+        status
-+        ;;
-     *)
--        echo "Usage: /etc/init.d/${SCRIPT_NAME} {start|stop|restart|create-paths}"
-+        echo "Usage: /etc/init.d/${SCRIPT_NAME} {start|stop|restart|create-paths|status}"
-         exit 64  # EX_USAGE
-     ;;
- esac
 --- a/extra/generic-init.d/celeryd
 +++ b/extra/generic-init.d/celeryd
 @@ -16,6 +16,7 @@
@@ -87,17 +48,7 @@
  ### END INIT INFO
  #
  #
-@@ -28,6 +29,9 @@
- #
- # You can then configure this by manipulating /etc/default/little-worker.
- #
-+
-+. /lib/lsb/init-functions
-+
- VERSION=10.0
- echo "celery init v${VERSION}."
- if [ $(id -u) -ne 0 ]; then
-@@ -52,6 +56,7 @@
+@@ -52,6 +53,7 @@
  DEFAULT_LOG_LEVEL="INFO"
  DEFAULT_NODES="celery"
  DEFAULT_CELERYD="-m celery worker --detach"
@@ -105,7 +56,7 @@
  
  CELERY_DEFAULTS=${CELERY_DEFAULTS:-"/etc/default/${SCRIPT_NAME}"}
  
-@@ -104,6 +109,12 @@
+@@ -104,6 +106,12 @@
      . "$CELERY_DEFAULTS"
  fi
  




More information about the Python-modules-commits mailing list