create pid per id

This commit is contained in:
j 2016-01-05 21:25:19 +05:30
parent 326847ec5d
commit 784a29866c
1 changed files with 6 additions and 0 deletions

6
ctl
View File

@ -11,6 +11,12 @@ BASE=`pwd`
SYSTEM=`uname -s`
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
export PLATFORM_ENV="$BASE/local_platform"
else