commit: nxreload

pull/7/head
Alec Muffett 2017-02-11 20:29:48 +00:00
rodzic bd00e4a91a
commit f960664c42
3 zmienionych plików z 14 dodań i 2 usunięć

6
eotk
Wyświetl plik

@ -77,7 +77,7 @@ Configure() {
if [ -s $file2 ] ; then
echo $prog: $file: using existing $file2
else
echo $prog: $file: populating $file2 with onions
echo $prog: $file: populating $file2 with onions, please be very patient...
Populate $file > $file2
fi
file="$file2"
@ -131,6 +131,10 @@ case "$cmd" in
Action bounce "$@"
;;
nxreload) # project, or "-a"
Action nxreload "$@"
;;
debugon) # project, or "-a"
Action debugon "$@"
;;

Wyświetl plik

@ -336,7 +336,7 @@ sub DoProject {
&SetEnv("header_hpkp_suppress", 1);
&SetEnv("header_hsts_suppress", 1);
&SetEnv("SCRIPT_NAMES", "bounce.sh debugoff.sh debugon.sh harvest.sh maps.sh start.sh status.sh stop.sh syntax.sh");
&SetEnv("SCRIPT_NAMES", "bounce.sh debugoff.sh debugon.sh harvest.sh maps.sh nxreload.sh start.sh status.sh stop.sh syntax.sh");
&SetEnv("SCRIPT_PAUSE", 5);
# dynamic settings: overridable / may be given a global setting

Wyświetl plik

@ -0,0 +1,8 @@
#!/bin/sh
# eotk (c) 2017 Alec Muffett
cd %PROJECT_DIR% || exit 1
nginxconf=%PROJECT_DIR%/nginx.conf
test -f $nginxconf && nginx -c $nginxconf -s reload
exit 0