create pid per id
This commit is contained in:
parent
326847ec5d
commit
784a29866c
1 changed files with 6 additions and 0 deletions
6
ctl
6
ctl
|
@ -11,6 +11,12 @@ BASE=`pwd`
|
||||||
SYSTEM=`uname -s`
|
SYSTEM=`uname -s`
|
||||||
PLATFORM=`uname -m`
|
PLATFORM=`uname -m`
|
||||||
|
|
||||||
|
if [ -e "$BASE/config/tor/hostname" ]; then
|
||||||
|
onion=$(cat "$BASE/config/tor/hostname")
|
||||||
|
id=${onion/.onion/}
|
||||||
|
PID="/tmp/$NAME.$USER.$id.pid"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -e "$BASE/local_platform" ]; then
|
if [ -e "$BASE/local_platform" ]; then
|
||||||
export PLATFORM_ENV="$BASE/local_platform"
|
export PLATFORM_ENV="$BASE/local_platform"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue