Browse Source

celerybeat ini script: Do not source virtualenv scripts as root. Related to #1578

Ask Solem 11 years ago
parent
commit
9c00d0c67c
1 changed files with 0 additions and 3 deletions
  1. 0 3
      extra/generic-init.d/celerybeat

+ 0 - 3
extra/generic-init.d/celerybeat

@@ -176,9 +176,6 @@ stop_beat () {
 
 start_beat () {
     echo "Starting ${SCRIPT_NAME}..."
-    if [ -n "$VIRTUALENV" ]; then
-        source $VIRTUALENV/bin/activate
-    fi
     $CELERYBEAT $CELERY_APP_ARG $CELERYBEAT_OPTS $DAEMON_OPTS --detach \
                 --pidfile="$CELERYBEAT_PID_FILE"
 }