title: Celery Daemon does not work on Centos 7
body: <p>I am trying to run celery daemon on Centos 7 which has systemd / systemctl.
  It is not working.</p>
  
  <ul>
  <li>I tried a non-daemon case and it worked</li>
  <li>I ran ~mytask and that freezes up on the client machine and on the server where the celery daemon is running I get absolutely nothing logged.</li>
  <li>I have noticed that actually no celery processes are running.</li>
  </ul>
  
  <p>Any suggestions as how to fix this?</p>
  
  <p>Here is my daemon default configuration:</p>
  
  <pre><code>CELERYD_NODES="localhost.localdomain"
  CELERY_BIN="/tmp/myapp/venv/bin/celery"
  CELERY_APP="pipeline"
  CELERYD_OPTS="--broker=amqp://192.168.168.111/"
  CELERYD_LOG_LEVEL="INFO"
  CELERYD_CHDIR="/tmp/myapp"
  CELERYD_USER="root"
  </code></pre>
  
  <p>Note: I am starting the daemon with</p>
  
  <pre><code>sudo /etc/init.d/celeryd start
  </code></pre>
  
  <p>and I got my celery daemon script from:
  <a href="https://raw.githubusercontent.com/celery/celery/3.1/extra/generic-init.d/celeryd" rel="nofollow">https://raw.githubusercontent.com/celery/celery/3.1/extra/generic-init.d/celeryd</a></p>
  
  <p>I also tried the one from:
  <a href="https://raw.githubusercontent.com/celery/celery/3.1/extra/generic-init.d/celeryd" rel="nofollow">https://raw.githubusercontent.com/celery/celery/3.1/extra/generic-init.d/celeryd</a>
  but this one showed me an error when trying to start the daemon:</p>
  
  <pre><code>systemd[1]: Starting LSB: celery task worker daemon...
  celeryd[19924]: basename: missing operand
  celeryd[19924]: Try 'basename --help' for more information.
  celeryd[19924]: Starting : /etc/rc.d/init.d/celeryd: line 193: multi: command not found
  celeryd[19924]: [FAILED]
  systemd[1]: celeryd.service: control process exited, code=exited status=1
  systemd[1]: Failed to start LSB: celery task worker daemon.
  systemd[1]: Unit celeryd.service entered failed state.
  </code></pre>