diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-24 14:52:43 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-24 14:52:43 -0400 |
commit | 412671ee48804867fc6707fa12409ae9365f5ea3 (patch) | |
tree | 2a29b9acf28b8e372d54504dc7c7d6a9890f7ae9 /modules/service.py | |
parent | 731190a1b414e3d5b31e6de5c80772d6f532f658 (diff) | |
download | func-412671ee48804867fc6707fa12409ae9365f5ea3.tar.gz func-412671ee48804867fc6707fa12409ae9365f5ea3.tar.xz func-412671ee48804867fc6707fa12409ae9365f5ea3.zip |
Package the subprocess module so that we can use it on EL4.
Diffstat (limited to 'modules/service.py')
-rwxr-xr-x | modules/service.py | 4 |
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) |