Merge pull request #50 from Unknwon/master
complete quick start
Showing
3 changed files
with
47 additions
and
0 deletions
This diff is collapsed.
Click to expand it.
docs/en/Supervisord.md
0 → 100644
| 1 | ##supervisord | ||
| 2 | |||
| 3 | 1. Installation | ||
| 4 | |||
| 5 | wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg | ||
| 6 | |||
| 7 | sh setuptools-0.6c11-py2.7.egg | ||
| 8 | |||
| 9 | easy_install supervisor | ||
| 10 | |||
| 11 | echo_supervisord_conf >/etc/supervisord.conf | ||
| 12 | |||
| 13 | mkdir /etc/supervisord.conf.d | ||
| 14 | |||
| 15 | 2. Configure /etc/supervisord.conf | ||
| 16 | |||
| 17 | [include] | ||
| 18 | files = /etc/supervisord.conf.d/*.conf | ||
| 19 | |||
| 20 | 3. Add new application | ||
| 21 | |||
| 22 | cd /etc/supervisord.conf.d | ||
| 23 | vim beepkg.conf | ||
| 24 | |||
| 25 | Configuration file: | ||
| 26 | |||
| 27 | [program:beepkg] | ||
| 28 | directory = /opt/app/beepkg | ||
| 29 | command = /opt/app/beepkg/beepkg | ||
| 30 | autostart = true | ||
| 31 | startsecs = 5 | ||
| 32 | user = root | ||
| 33 | redirect_stderr = true | ||
| 34 | stdout_logfile = /var/log/supervisord/beepkg.log | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment