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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: supervisord | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
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
server { | |
listen 80; | |
server_name db; | |
root /usr/share/phpmyadmin; | |
index index.php; | |
access_log off; | |
error_log /var/log/nginx/db.error.log error; | |
error_log /var/log/nginx/db.debug.log debug; |
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
--ignore-ack-defaults | |
# This is the default ackrc for ack version 2.14. | |
# There are four different ways to match | |
# | |
# is: Match the filename exactly | |
# | |
# ext: Match the extension of the filename exactly | |
# | |
# match: Match the filename against a Perl regular expression |
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
## | |
# PHP-FPM | |
## | |
upstream php { | |
server 127.0.0.1:7777; | |
} |
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
[/var/log/mail.log] | |
datetime_format = %b %d %H:%M:%S | |
file = /var/log/mail.log | |
buffer_duration = 5000 | |
log_stream_name = {hostname} | |
initial_position = start_of_file | |
log_group_name = /var/log/mail.log | |
[/var/log/auth.log] | |
datetime_format = %b %d %H:%M:%S | |
file = /var/log/auth.log |
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=The CloudWatch Logs agent | |
After=rc-local.service | |
[Service] | |
Type=simple | |
Restart=always | |
KillMode=process | |
TimeoutSec=infinity | |
PIDFile=/var/awslogs/state/awslogs.pid |
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
## | |
# PHP-FPM | |
## | |
upstream php { | |
server unix:/run/php/php7.3-fpm.sock; | |
} |
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
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list |
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 daemon | |
Documentation=http://supervisord.org | |
After=network.target | |
[Service] | |
ExecStart=/usr/local/bin/supervisord -n -c /etc/supervisor/supervisord.conf | |
ExecStop=/usr/local/bin/supervisorctl $OPTIONS shutdown | |
ExecReload=/usr/local/bin/supervisorctl $OPTIONS reload | |
KillMode=process |
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
; supervisor config file | |
[unix_http_server] | |
file=/var/run/supervisor.sock ; (the path to the socket file) | |
chmod=0700 ; sockef file mode (default 0700) | |
[supervisord] | |
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log) | |
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid) | |
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP) |
OlderNewer