Skip to content

Instantly share code, notes, and snippets.

@AlexMocioi
Created May 30, 2014 06:01
Show Gist options
  • Save AlexMocioi/dc46c14728f6ac81dde5 to your computer and use it in GitHub Desktop.
Save AlexMocioi/dc46c14728f6ac81dde5 to your computer and use it in GitHub Desktop.
Cum se configureaza un beanstalkd care sa ramana viu permanent ...
Leave beanstalkd disabled in /etc/default/beanstalkd
Then create a bash script to execute beanstalkd.
$ cat /usr/local/bin/beanstalkdshell
#!/bin/bash
/usr/local/bin/beanstalkd -l 0.0.0.0 -p 11300 -b /var/lib/beanstalkd
Then setup supervisord.
[program:beanstalkd]
command=/usr/local/bin/beanstalkdshell
startsecs=15
autorestart=true
autostart=true
stopsignal=KILL
user=nobody
Now you have a recoverable beanstalkd.
Hope it helps for anyone else.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment