summaryrefslogtreecommitdiffstats
path: root/modules/service.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/service.py')
-rwxr-xr-xmodules/service.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/service.py b/modules/service.py
index bbc51e1..524cd7b 100755
--- a/modules/service.py
+++ b/modules/service.py
@@ -18,7 +18,7 @@
from codes import *
from modules import func_module
-import subprocess
+import sub_process
import os
class Service(func_module.FuncModule):
@@ -37,7 +37,7 @@ class Service(func_module.FuncModule):
filename = os.path.join("/etc/rc.d/init.d/",service_name)
if os.path.exists(filename):
- return subprocess.call(["/sbin/service", service_name, command])
+ return sub_process.call(["/sbin/service", service_name, command])
else:
raise FuncException("Service not installed: %s" % service_name)