Enterprise-Onion-Toolkit/templates.d/debugon.sh.txt

18 wiersze
331 B
Plaintext
Czysty Zwykły widok Historia

2017-02-01 08:38:03 +00:00
#!/bin/sh
# eotk (c) 2017 Alec Muffett
2017-02-04 12:37:31 +00:00
cd %PROJECT_DIR% || exit 1
2017-02-01 08:38:03 +00:00
%%IF %IS_SOFTMAP%
2017-02-04 12:37:31 +00:00
pidfiles=`echo %PROJECT_DIR%/%TOR_WORKER_PREFIX%*.d/tor.pid`
2017-02-01 08:38:03 +00:00
%%ELSE
2017-02-04 12:37:31 +00:00
pidfiles=%PROJECT_DIR%/tor.pid
2017-02-01 08:38:03 +00:00
%%ENDIF
2017-02-04 12:37:31 +00:00
for pidfile in $pidfiles ; do
test -s $pidfile &&
kill -USR1 `cat $pidfile` &&
kill -USR2 `cat $pidfile`
done
2017-02-01 08:38:03 +00:00
exit 0