Last active
December 31, 2021 17:15
-
-
Save Carry00/555036a4d62cbb745f3fc25d7cd4cbc8 to your computer and use it in GitHub Desktop.
supervisor配置文件
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:dns] | |
directory=/usr/local/AdGuardHome/ | |
command=/usr/local/AdGuardHome/AdGuardHome | |
autostart = true | |
autorestart = true | |
startsecs=1 | |
user = root | |
stdout_logfile=/data/log/dns.log | |
redirect_stderr = true | |
stdout_logfile_maxbytes = 20MB | |
stdout_logfile_backups = 2 |
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:aria2c] | |
directory=/root/.aria2 | |
command=/usr/local/bin/aria2c --conf-path=/etc/aria2c/aria2c.conf | |
autostart=true | |
autorestart=true | |
startsecs=1 | |
user = root | |
stdout_logfile=/data/log/aria2c.log | |
redirect_stderr = true | |
stdout_logfile_maxbytes = 20MB | |
stdout_logfile_backups = 2 |
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:caddy] | |
directory=/usr/local/src/caddy/ | |
command=/bin/caddy run --environ --config /etc/caddy/Caddyfile | |
autostart = true | |
autorestart = true | |
startsecs=1 | |
user = root | |
stdout_logfile=/data/log/caddy.log | |
redirect_stderr = true | |
stdout_logfile_maxbytes = 20MB | |
stdout_logfile_backups = 2 |
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:elasticsearch] | |
command=/usr/local/elasticsearch/bin/elasticsearch | |
user=root | |
directory=/usr/local/elasticsearch/ | |
autostart=true | |
autorestart=true | |
environment=JAVA_HOME=/usr/lib/jvm/java-11-openjdk-armhf/ | |
startretries=3 | |
stopsignal=INT | |
startsecs=10 | |
stdout_logfile=/data/log/elasticsearch.log | |
stdout_logfile_maxbytes = 20MB | |
stdout_logfile_backups = 2 |
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:mysql] | |
command=/usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/auto.err --pid-file=/usr/local/mysql/data/auto.pid --port=3306 | |
stdout_logfile=/tmp/mysql.log | |
stderr_logfile=/tmp/mysql_err.log | |
autostart=true | |
autorestart=true | |
startsecs=10 | |
stopwaitsecs=50 | |
priority=3 |
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 UNIX | |
Documentation=http://supervisord.org | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf | |
ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown | |
ExecReload=/usr/bin/supervisorctl -c /etc/supervisor/supervisord.conf $OPTIONS reload | |
KillMode=process | |
Restart=on-failure | |
RestartSec=50s | |
[Install] | |
WantedBy=multi-user.target |
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:webdav] | |
directory=/usr/local/webdav/ | |
command=/usr/local/webdav/bin/webdav --config /etc/webdav/webdav.yaml | |
autostart = true | |
autorestart = true | |
startsecs=1 | |
user = root | |
stdout_logfile=/data/log/webdav.log | |
redirect_stderr = true | |
stdout_logfile_maxbytes = 20MB | |
stdout_logfile_backups = 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment