From 412671ee48804867fc6707fa12409ae9365f5ea3 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 24 Sep 2007 14:52:43 -0400 Subject: Package the subprocess module so that we can use it on EL4. --- modules/service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/service.py') 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) -- cgit