I am working on beanstalkd on Ubuntu (very new to me), I want to know what a good way to run the beanstalkd service when ubuntu boots up.
In short, I would like to fulfill,
beanstalkd -b / path / to / binlog / directory -l 127.0.0.1 -p 11300
Using / etc / default / beanstalkd. I added the following code and reboot system (not working)
BEANSTALKD_LISTEN_ADDR=127.0.0.1
BEANSTALKD_LISTEN_PORT=11300
BEANSTALKD_BINLOG_DIR=/var/www
DAEMON_OPTS="-l $BEANSTALKD_LISTEN_ADDR -p $BEANSTALKD_LISTEN_PORT -b $BEANSTALKD_BINGLOG_DIR"
START=yes
sudo nano / etc / init / beanstalkd.conf and insert and reload system (not working)
description "simple, fast work queue"
start on filesystem stop on runlevel [!2345]
respawn respawn limit 5 2
exec su nobody -c 'exec /usr/local/bin/beanstalkd'
By changing the rc.local file in the / etc / folder. Paste my command to execute before exit 0 (works fine for me)
source
share