31 lines
754 B
Plaintext
31 lines
754 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
|
|
[program:nginx]
|
|
command=nginx -g "daemon off;"
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/var/log/nginx/access.log
|
|
stderr_logfile=/var/log/nginx/error.log
|
|
|
|
[program:java]
|
|
command=bash -c "java -jar /opt/mcstatscli/MinecraftStatsCLI.jar config.json"
|
|
directory=/opt/mcstatscli/
|
|
autostart=true
|
|
autorestart=true
|
|
startsecs=100
|
|
stdout_logfile=/var/log/java-output.log
|
|
stderr_logfile=/var/log/java-error.log
|
|
stdout_logfile_maxbytes=1MB
|
|
stdout_logfile_backups=1
|
|
stdout_capture_maxbytes=1MB
|
|
stdout_events_enabled=false
|
|
stderr_logfile_maxbytes=1MB
|
|
stderr_logfile_backups=1
|
|
stderr_capture_maxbytes=1MB
|
|
|
|
[program:periodicrestarter]
|
|
command = sh -c "echo 'restart java' | supervisorctl;sleep 3600"
|
|
autorestart = true
|
|
|
|
[supervisorctl] |