Friday, September 14, 2012
how to use supervisord, supervisorctl, memcached?
supervisorctl status
supervisorctl stop all
cd /etc/supervisor/
cd conf.d/
mv saferoad.conf saferoad.conf.OLD
DON'T USE:
service supervisor restart
THIS DOESN'T UPDATE the supervisor's (reduced) programs to start.
supervisorctl status -- nothing changed.
INSTEAD USE:
service supervisor stop
supervisorctl status # no such file. OK.
service supervisor start
supervisorctl status # OK. the reduced program list. memcache only, without all the 5 saferoad apps.
nano saferoad.conf.OLD
nano memcache.conf # how you put in the scripts you want to startup (like autoexec.bat.)
######################################################
root@debian64:/home/leeubi# supervisorctl status
admin:admin0 RUNNING pid 1775, uptime 0:18:56
api:api0 RUNNING pid 1774, uptime 0:18:56
iframe:iframe0 RUNNING pid 1795, uptime 0:18:56
manage:manage0 RUNNING pid 1780, uptime 0:18:56
memcache RUNNING pid 1790, uptime 0:18:56
sa:sa0 RUNNING pid 1797, uptime 0:18:56
root@debian64:/home/leeubi# supervisorctl stopall
*** Unknown syntax: stopall
root@debian64:/home/leeubi# supervisorctl stop all
api0: stopped
admin0: stopped
manage0: stopped
memcache: stopped
iframe0: stopped
sa0: stopped
root@debian64:/home/leeubi# supervisorctl status^C
root@debian64:/home/leeubi# ^C
root@debian64:/home/leeubi# cd /etc/supervisor/
root@debian64:/etc/supervisor# ls
conf.d supervisord.conf
root@debian64:/etc/supervisor# cd conf.d/
root@debian64:/etc/supervisor/conf.d# ls
memcache.conf safeavenue.conf safeavenue.conf.sample
README safeavenue.conf.bak
root@debian64:/etc/supervisor/conf.d# mv safeavenue.conf safeavenue.conf.OLD
root@debian64:/etc/supervisor/conf.d# service supervisord restart
supervisord: unrecognized service
root@debian64:/etc/supervisor/conf.d# service supervisor restart
Restarting supervisor: root@debian64:/etc/supervisor/conf.d# service supervisor supervisorctl status
admin:admin0 STOPPED Sep 13 03:13 PM
api:api0 STOPPED Sep 13 03:13 PM
iframe:iframe0 STOPPED Sep 13 03:13 PM
manage:manage0 STOPPED Sep 13 03:13 PM
memcache STOPPED Sep 13 03:13 PM
sa:sa0 STOPPED Sep 13 03:13 PM
root@debian64:/etc/supervisor/conf.d# supervisorctl status
admin:admin0 STOPPED Sep 13 03:13 PM
api:api0 STOPPED Sep 13 03:13 PM
iframe:iframe0 STOPPED Sep 13 03:13 PM
manage:manage0 STOPPED Sep 13 03:13 PM
memcache STOPPED Sep 13 03:13 PM
sa:sa0 STOPPED Sep 13 03:13 PM
root@debian64:/etc/supervisor/conf.d# ls
memcache.conf safeavenue.conf.bak safeavenue.conf.sample
README safeavenue.conf.OLD
root@debian64:/etc/supervisor/conf.d# service supervisor stop
Stopping supervisor: supervisord.
root@debian64:/etc/supervisor/conf.d# service supervisor stop
Stopping supervisor: supervisord.
root@debian64:/etc/supervisor/conf.d# supervisorctl status
unix:///var/run/supervisor.sock no such file
root@debian64:/etc/supervisor/conf.d# service supervisor start
Starting supervisor: supervisord.
root@debian64:/etc/supervisor/conf.d# supervisorctl status
memcache RUNNING pid 3547, uptime 0:00:02
root@debian64:/etc/supervisor/conf.d# nano safeavenue.conf.OLD
root@debian64:/etc/supervisor/conf.d# nano memcache.conf
root@debian64:/etc/supervisor/conf.d#
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment