Install virtualenv and supervisord to a system without internet access(offline)
then you can maintain you daemon processes easily
this package contains
supervisor-3.1.3.tar.gz
virtualenv-13.1.2.tar.gz
https://github.com/wklken/offline/archive/v0.1.tar.gz
tar -xzvf xxx.tar.gz
cd xxx
then you got
.
├── console.sh # supervisord console
├── pkgs
│ ├── elementtree-1.2.6-20050316.tar.gz
│ ├── meld3-0.6.5.tar.gz
│ ├── setuptools-18.5.tar.gz
│ ├── supervisor-3.1.3.tar.gz
│ └── virtualenv-13.1.2.tar.gz
├── setup.sh # init env and setup
└── start_supervisord.sh # start supervisord
./setup.sh
then you got
conf/
└── supervisord.conf
env/
./start_supervisord.sh
ps aux | grep supervisord
edit the conf/supervisord.conf
and use the console.sh
to manage the process
$ ./console.sh
===================== usage =====================
./console.sh - enter command line
./console.sh status - show all configured process
./console.sh start - start program
./console.sh stop - stop program
./console.sh restart - restart program
./console.sh reread && ./console.sh update - update config and just update the modified programs
./console.sh reload - reload config files and restart all programs(stopeed not included)
=================================================
supervisor> status # show processes status
supervisor> reread # reread the config file
supervisor> update # update and start the modified config processes
- 2015-11-22 version 0.1, first version
wklken
Email: wklken@yeah.net
Github: https://github.com/wklken
Blog: http://www.wklken.me