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

  1. 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 
  2. 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' 
  3. 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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -