Last active
November 2, 2018 02:49
-
-
Save kevinlincg/4f07eb3e9a3a351b5ef42405ad8f6493 to your computer and use it in GitHub Desktop.
supervisord
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mariadb] | |
name = MariaDB | |
baseurl = http://yum.mariadb.org/10.2/centos7-amd64 | |
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB | |
gpgcheck=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:rapixengineapi] | |
command=/home/rapixus/api/rapixusapi | |
autostart=true | |
autorestart=true | |
startsecs=10 | |
stdout_logfile=/var/log/rapixusapi.log | |
stdout_logfile_maxbytes=100MB | |
stdout_logfile_backups=10 | |
stdout_capture_maxbytes=100MB | |
stderr_logfile=/var/log/rapixusapi.log | |
stderr_logfile_maxbytes=100MB | |
stderr_logfile_backups=10 | |
stderr_capture_maxbytes=100MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[unix_http_server] | |
file=/var/run/supervisor.sock ; the path to the socket file | |
chmod=0700 ; socket file mode (default 0700) | |
[supervisord] | |
logfile=/var/log/supervisor/supervisord.log ; main log file; default $CWD/supervisord.log | |
logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB | |
logfile_backups=10 ; # of main logfile backups; 0 means none, default 10 | |
loglevel=info ; log level; default info; others: debug,warn,trace | |
pidfile=/var/run/supervisord.pid ; supervisord pidfile; default supervisord.pid | |
nodaemon=false ; start in foreground if true; default false | |
minfds=10240 ; min. avail startup file descriptors; default 1024 | |
minprocs=10240 ; min. avail process descriptors;default 200 | |
childlogdir=/var/log/supervisor | |
[rpcinterface:supervisor] | |
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface | |
[supervisorctl] | |
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket | |
[include] | |
files = /home/rapixus/api/*.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Supervisor process control system for RapixCentOS | |
Documentation=http://supervisord.org | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/supervisord -n -c /etc/supervisord.conf | |
ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown | |
ExecReload=/usr/bin/supervisorctl $OPTIONS reload | |
KillMode=process | |
Restart=on-failure | |
RestartSec=30s | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment