diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-15 16:13:51 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-15 16:13:51 (GMT) |
commit | 4989e79abe0bd9b8c7e364953158e66578f0b0d4 (patch) | |
tree | 38c0d1fe29ea2b8b4c4dd9aac56eb41b73a552a0 /abs/core/LinHES-config/mv_common.py | |
parent | 094bbec4072b32b2d9d81fb94fd262f60611f7e8 (diff) | |
download | linhes_pkgbuild-4989e79abe0bd9b8c7e364953158e66578f0b0d4.zip linhes_pkgbuild-4989e79abe0bd9b8c7e364953158e66578f0b0d4.tar.gz linhes_pkgbuild-4989e79abe0bd9b8c7e364953158e66578f0b0d4.tar.bz2 |
LinHES-config: fixed several install problems
- new grub install
- fix detection of ip in python scripts
- fix xscreensaver not starting after install
- fix force umount of /new_boot
Diffstat (limited to 'abs/core/LinHES-config/mv_common.py')
-rwxr-xr-x | abs/core/LinHES-config/mv_common.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/abs/core/LinHES-config/mv_common.py b/abs/core/LinHES-config/mv_common.py index e4bef48..fa610b6 100755 --- a/abs/core/LinHES-config/mv_common.py +++ b/abs/core/LinHES-config/mv_common.py @@ -162,6 +162,16 @@ def restart_service(daemon): cmd = "sv restart %s" %daemon runcmd(cmd) +def check_service(daemon): + logging.info(" Checking status of service %s",daemon) + cmd = "sv status %s" %daemon + results = runcmd_output(cmd) + status = results.split()[0] + if status == "run:": + return True + else: + return False + def hup_service(daemon): logging.info(" hup service %s",daemon) cmd = "sv hup %s" %daemon |