supervisord

Post tags: | supervisord |

Why

  • tmux weechat

Supervisord Install

Debian Package: python-setuptools

install supervisor in one step using easy_install.
        easy_install supervisor
        

Start at boot time

/etc/init.d/supervisor
        DAEMON_OPTS="-c /etc/supervisor/supervisord.conf $DAEMON_OPTS"
        
system control commands
        update-rc.d supervisor enable
        update-rc.d supervisor disable
        
        service supervisor start
        service supervisor stop
        service supervisor restart
        service supervisor reload
        service supervisor status
        

tmux weechat config example

/etc/supervisor/conf.d/irc
        [program:irc]
        command=/home/craig/bin/irc
        process_name=$(program_name)s
        directory=/tmp
        autostart=true
        autorestart=true
        startsecs=30
        startretries=3
        user=craig
        environment=TERM="st-256color"
        
~craig/bin/irc
        shebang /bin/bash
        export TERM="st-256color"
        tmux -2 new-session -s irc weechat
        

Research