Ajout d'un exemple de configuration
This commit is contained in:
parent
7e282629e4
commit
5a5fd820b1
|
@ -23,6 +23,42 @@ On peut ensuite faire :
|
|||
$ supervisorctl -s http://127.0.0.1:9001 status
|
||||
~~~
|
||||
|
||||
### Exemple
|
||||
|
||||
Si l'on souhaite surveiller le process /home/bar/foo
|
||||
|
||||
~~~
|
||||
# cat /etc/supervisor/conf.d/foo.conf
|
||||
[program:foo]
|
||||
user=bar
|
||||
command=/home/bar/foo
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stderr_logfile=/home/bar/log/foo.error.log
|
||||
stdout_logfile=/home/bar/log/foo.log
|
||||
~~~
|
||||
|
||||
~~~
|
||||
# supervisorctl reread
|
||||
# supervisorctl update
|
||||
~~~
|
||||
|
||||
~~~
|
||||
# supervisorctl
|
||||
foo RUNNING pid 42042, uptime 0:42:42
|
||||
supervisor> stop foo
|
||||
foo: stopped
|
||||
supervisor> start foo
|
||||
foo: started
|
||||
supervisor> help
|
||||
|
||||
default commands (type help <topic>):
|
||||
=====================================
|
||||
add exit open reload restart start tail
|
||||
avail fg pid remove shutdown status update
|
||||
clear maintail quit reread signal stop version
|
||||
~~~
|
||||
|
||||
## En cas de soucis
|
||||
|
||||
On vérifie si le process tourne encore
|
||||
|
|
Loading…
Reference in New Issue