kopia lustrzana https://github.com/alecmuffett/eotk
commit: first cut
rodzic
d6021400df
commit
24c4d7ed9e
5
eotk
5
eotk
|
@ -448,6 +448,11 @@ case "$cmd" in
|
||||||
InvokeRemotely debugoff "$@"
|
InvokeRemotely debugoff "$@"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
cleanup) # project ..., or "-a"
|
||||||
|
$need_to_run_locally && RunLocallyOverProjects cleanup "$@"
|
||||||
|
InvokeRemotely cleanup "$@"
|
||||||
|
;;
|
||||||
|
|
||||||
syntax) # project ..., or "-a"
|
syntax) # project ..., or "-a"
|
||||||
$need_to_run_locally && RunLocallyOverProjects syntax "$@"
|
$need_to_run_locally && RunLocallyOverProjects syntax "$@"
|
||||||
InvokeRemotely syntax "$@"
|
InvokeRemotely syntax "$@"
|
||||||
|
|
|
@ -625,7 +625,7 @@ foreach my $var (@set_blank) {
|
||||||
&SetEnv($var, "");
|
&SetEnv($var, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
&SetEnv("SCRIPT_NAMES", "bounce.sh debugoff.sh debugon.sh harvest.sh maps.sh nxreload.sh start.sh status.sh stop.sh syntax.sh torreload.sh");
|
&SetEnv("SCRIPT_NAMES", "bounce.sh cleanup.sh debugoff.sh debugon.sh harvest.sh maps.sh nxreload.sh start.sh status.sh stop.sh syntax.sh torreload.sh");
|
||||||
&SetEnv("SCRIPT_PAUSE", 5);
|
&SetEnv("SCRIPT_PAUSE", 5);
|
||||||
|
|
||||||
# dynamic settings: overridable / may be given a global setting
|
# dynamic settings: overridable / may be given a global setting
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# eotk (c) 2017 Alec Muffett
|
||||||
|
cd %PROJECT_DIR% || exit 1
|
||||||
|
|
||||||
|
# stop everything to be sure
|
||||||
|
|
||||||
|
sh %PROJECT_DIR%/stop.sh || exit 1
|
||||||
|
|
||||||
|
# remove pidfiles
|
||||||
|
|
||||||
|
%%IF %IS_SOFTMAP%
|
||||||
|
torpidfiles=`echo %PROJECT_DIR%/%TOR_WORKER_PREFIX%*.d/tor.pid`
|
||||||
|
%%ELSE
|
||||||
|
torpidfiles=%PROJECT_DIR%/tor.pid
|
||||||
|
%%ENDIF
|
||||||
|
|
||||||
|
ngxpidfile=%PROJECT_DIR%/nginx.pid
|
||||||
|
|
||||||
|
# remove sockets
|
||||||
|
|
||||||
|
sockets=`find %PROJECT_DIR% -name '*.sock'`
|
||||||
|
|
||||||
|
# do it
|
||||||
|
|
||||||
|
rm -f $torpidfiles $ngxpidfile $sockets
|
||||||
|
|
||||||
|
# done
|
||||||
|
|
||||||
|
exit 0
|
Ładowanie…
Reference in New Issue