0

I ran sudo update-rc.d celeryd defaults

All good.

I ran:

/etc/init.d/celeryd start

All good.

I restart machine.

All bad.

sudo /etc/init.d/celeryd status

celeryd not running (no pidfile)

I'm a noob on linux and I don't even have the first idea of where to look to find some error messages. I checked /var/log but I don't see anything relevant. /var/log/celery is empty. But if I manually run celeryd start, then /var/log/celery will have some logs.

hmayag
  • 2,246
  • 5
  • 21
  • 23
jahova
  • 1
  • 1
  • 1

2 Answers2

2

Here's the process.

  1. Put the celeryd file inside /etc/init.d/
  2. Make it executable

    sudo chmod +x celeryd
    
  3. Make it run on startup

    sudo update-rc.d celeryd defaults
    sudo update-rc.d celeryd enable <------- Are you currently missing this step?
    
  4. Make it owned by root and have the correct permissions

    sudo chown root:root celeryd
    sudo chmod 777 celeryd
    
αғsнιη
  • 35,660
drmclean
  • 21
  • 2
0

You need to tell the system to auto start it. Read these excellent answers on the different ways you can achieve this.

hmayag
  • 2,246
  • 5
  • 21
  • 23