소스 검색

fixes broken little-worker example

using the -L test breaks the ability to use multiple instances of init script as described in the top of file
Rudy Attias 9 년 전
부모
커밋
3ea224dea1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      extra/generic-init.d/celeryd

+ 1 - 1
extra/generic-init.d/celeryd

@@ -39,7 +39,7 @@ fi
 
 
 # Can be a runlevel symlink (e.g. S02celeryd)
-if [ -L "$0" ]; then
+if [[ `dirname $0` == /etc/rc*.d ]]; then
     SCRIPT_FILE=$(readlink "$0")
 else
     SCRIPT_FILE="$0"