Launch beanstalkd command at Ubuntu Boot -
i working on beanstalkd on ubuntu (very new me), want know way start beanstalkd service on ubuntu boot.
in short, execute,
beanstalkd -b /path/to/binlog/directory -l 127.0.0.1 -p 11300
using /etc/default/beanstalkd . have added following code , 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 , pasting , reboot 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 editing rc.local file under /etc/ folder. paste command execute before exit 0 (working fine me)
there sample upstart script in beanstalkd repo @ https://github.com/kr/beanstalkd/tree/master/adm/upstart differs own start/stop , respawn lines being seperated.
the configuration of binlog directory, , ip address can added beanstalkd.conf file enough.
Comments
Post a Comment