Last active
December 19, 2015 12:09
-
-
Save jbfink/5952630 to your computer and use it in GitHub Desktop.
apache foreground.sh for use with supervisord
This file contains hidden or 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/bash | |
read pid cmd state ppid pgrp session tty_nr tpgid rest < /proc/self/stat | |
trap "kill -TERM -$pgrp; exit" EXIT TERM KILL SIGKILL SIGTERM SIGQUIT | |
source /etc/apache2/envvars | |
apache2 -D FOREGROUND |
This file contains hidden or 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:mysqld] | |
command=/usr/sbin/mysqld | |
[program:httpd] | |
command=/etc/apache2/foreground.sh | |
stopsignal=6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment