create pid per id

This commit is contained in:
j 2016-01-05 21:25:19 +05:30
parent 326847ec5d
commit 784a29866c

6
ctl
View file

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