Add supervisor/README.md
This commit is contained in:
30
supervisor/README.md
Normal file
30
supervisor/README.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
```sh
|
||||||
|
sudo apt install -y supervisor
|
||||||
|
supervisord -c supervisord.conf -n
|
||||||
|
```
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[supervisord]
|
||||||
|
nodaemon=true
|
||||||
|
logfile=/dev/null
|
||||||
|
loglevel=critical
|
||||||
|
|
||||||
|
[program:process1]
|
||||||
|
command=sh -c "while true; do echo hello; sleep 2; done"
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/dev/stderr
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
|
|
||||||
|
[program:process2]
|
||||||
|
command=sh -c "while true; do echo world; sleep 3; done"
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/dev/stderr
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
|
```
|
||||||
|
|
||||||
Reference in New Issue
Block a user