Created
May 30, 2014 06:01
-
-
Save AlexMocioi/dc46c14728f6ac81dde5 to your computer and use it in GitHub Desktop.
Cum se configureaza un beanstalkd care sa ramana viu permanent ...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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