aboutsummaryrefslogtreecommitdiffstats
path: root/torouterui/util.py
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-11-25 02:24:27 +0100
committerficus <ficus@robocracy.org>2012-11-25 02:25:30 +0100
commit3aae76170978a7557b0d7d2cbf10b3b856871538 (patch)
treece2bd74d873a03db0177029c7abe7aae8e4d9c8e /torouterui/util.py
parent17f9bf637866bd9dbf63cce097a2db85f92e15cc (diff)
downloadtui-3aae76170978a7557b0d7d2cbf10b3b856871538.tar.gz
tui-3aae76170978a7557b0d7d2cbf10b3b856871538.zip
add tor (re)starts
Diffstat (limited to 'torouterui/util.py')
-rw-r--r--torouterui/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/torouterui/util.py b/torouterui/util.py
index 16e7f57..78046da 100644
--- a/torouterui/util.py
+++ b/torouterui/util.py
@@ -20,7 +20,7 @@ def fs_read(path):
def enable_service(name):
#os.system('update-rc.d %s defaults &' % name)
- subprocess.Popen(['service', name, 'start'], close_fds=True)
+ subprocess.Popen(['service', name, 'restart'], close_fds=True)
def disable_service(name):
"""Currently, this is never actually called"""