From 9be3fc152fd90b4ff44cbff190e53841c6eaa126 Mon Sep 17 00:00:00 2001 From: wayneaswilliams Date: Sat, 21 Apr 2018 17:47:16 -0400 Subject: [PATCH 1/3] Made PID file absolute. --- vars/socket_controller_vars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/socket_controller_vars.py b/vars/socket_controller_vars.py index 8008364..06ea832 100644 --- a/vars/socket_controller_vars.py +++ b/vars/socket_controller_vars.py @@ -116,7 +116,7 @@ def createRandAlpha(length=0): torarguments = {"--RunAsDaemon":'1', "--CookieAuthentication":'0', "--ControlPort":'%s', - "--PidFile":'tor%s.pid', + "--PidFile":datadir + 'tor%s/tor%s.pid', "--SocksPort":'%s:%s', "--DataDirectory":datadir + '/tor%s' #"--HashedControlPassword":createTorPassword(secret=createRandAlpha(length=5)), From 36c09811452369b36a9f3a5ba5b6249cd89f28f9 Mon Sep 17 00:00:00 2001 From: wayneaswilliams Date: Sat, 21 Apr 2018 17:48:40 -0400 Subject: [PATCH 2/3] Made PID file absolute. --- libs/nftk_socket_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/nftk_socket_controller.py b/libs/nftk_socket_controller.py index 64ddcf3..c4350b5 100755 --- a/libs/nftk_socket_controller.py +++ b/libs/nftk_socket_controller.py @@ -196,7 +196,7 @@ def spawn_socket(self, t_instance=0): runstmt.append(self.torarguments[k] % bcp) elif k == '--PidFile': runstmt.append(k) - runstmt.append(self.torarguments[k] % str(t_instance)) + runstmt.append(self.torarguments[k] % (str(t_instance), str(t_instance))) elif k == '--SocksPort': runstmt.append(k) runstmt.append(self.torarguments[k] % (self.selfip,bsp)) From ad52c5415fdbf4c7c6a95e263524683a263a6c28 Mon Sep 17 00:00:00 2001 From: wayneaswilliams Date: Sat, 21 Apr 2018 18:02:33 -0400 Subject: [PATCH 3/3] forgot a slash... --- vars/socket_controller_vars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/socket_controller_vars.py b/vars/socket_controller_vars.py index 06ea832..febd9c5 100644 --- a/vars/socket_controller_vars.py +++ b/vars/socket_controller_vars.py @@ -116,7 +116,7 @@ def createRandAlpha(length=0): torarguments = {"--RunAsDaemon":'1', "--CookieAuthentication":'0', "--ControlPort":'%s', - "--PidFile":datadir + 'tor%s/tor%s.pid', + "--PidFile":datadir + '/tor%s/tor%s.pid', "--SocksPort":'%s:%s', "--DataDirectory":datadir + '/tor%s' #"--HashedControlPassword":createTorPassword(secret=createRandAlpha(length=5)),