kopia lustrzana https://github.com/alecmuffett/eotk
21 wiersze
409 B
Bash
21 wiersze
409 B
Bash
#!/bin/sh
|
|
# eotk (c) 2017 Alec Muffett
|
|
cd %PROJECT_DIR% || exit 1
|
|
|
|
%%IF %IS_SOFTMAP%
|
|
conffiles=`echo %PROJECT_DIR%/%TOR_WORKER_PREFIX%*.d/tor.conf`
|
|
%%ELSE
|
|
conffiles=%PROJECT_DIR%/tor.conf
|
|
%%ENDIF
|
|
|
|
for torconf in $conffiles ; do
|
|
test -f $torconf && tor -f $torconf
|
|
done >%LOG_DIR%/tor-startup.conf
|
|
|
|
sleep %SCRIPT_PAUSE%
|
|
|
|
nginxconf=%PROJECT_DIR%/nginx.conf
|
|
test -f $nginxconf && nginx -c $nginxconf
|
|
|
|
exit 0
|