commit: first cut

pull/42/head
Alec Muffett 2019-11-10 13:07:30 +00:00
rodzic d6021400df
commit 24c4d7ed9e
3 zmienionych plików z 35 dodań i 1 usunięć

5
eotk
Wyświetl plik

@ -448,6 +448,11 @@ case "$cmd" in
InvokeRemotely debugoff "$@"
;;
cleanup) # project ..., or "-a"
$need_to_run_locally && RunLocallyOverProjects cleanup "$@"
InvokeRemotely cleanup "$@"
;;
syntax) # project ..., or "-a"
$need_to_run_locally && RunLocallyOverProjects syntax "$@"
InvokeRemotely syntax "$@"

Wyświetl plik

@ -625,7 +625,7 @@ foreach my $var (@set_blank) {
&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);
# dynamic settings: overridable / may be given a global setting

Wyświetl plik

@ -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