summaryrefslogtreecommitdiffstats
path: root/cobbler/modules/sync_post_restart_services.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/modules/sync_post_restart_services.py')
-rw-r--r--cobbler/modules/sync_post_restart_services.py25
1 files changed, 17 insertions, 8 deletions
diff --git a/cobbler/modules/sync_post_restart_services.py b/cobbler/modules/sync_post_restart_services.py
index fa9699b9..65bc0282 100644
--- a/cobbler/modules/sync_post_restart_services.py
+++ b/cobbler/modules/sync_post_restart_services.py
@@ -22,14 +22,16 @@ def run(api,args):
settings = api.settings()
- manage_dhcp = str(settings.manage_dhcp).lower()
- manage_dns = str(settings.manage_dns).lower()
- manage_xinetd = str(settings.manage_xinetd).lower()
- restart_dhcp = str(settings.restart_dhcp).lower()
- restart_dns = str(settings.restart_dns).lower()
- restart_xinetd = str(settings.restart_xinetd).lower()
- omapi_enabled = str(settings.omapi_enabled).lower()
- omapi_port = str(settings.omapi_port).lower()
+ manage_dhcp = str(settings.manage_dhcp).lower()
+ manage_dns = str(settings.manage_dns).lower()
+ manage_ris_linuxd = str(settings.manage_ris_linuxd).lower()
+ manage_xinetd = str(settings.manage_xinetd).lower()
+ restart_dhcp = str(settings.restart_dhcp).lower()
+ restart_dns = str(settings.restart_dns).lower()
+ restart_ris_linuxd = str(settings.manage_ris_linuxd).lower()
+ restart_xinetd = str(settings.restart_xinetd).lower()
+ omapi_enabled = str(settings.omapi_enabled).lower()
+ omapi_port = str(settings.omapi_port).lower()
which_dhcp_module = module_loader.get_module_from_file("dhcp","module",just_name=True).strip()
which_dns_module = module_loader.get_module_from_file("dns","module",just_name=True).strip()
@@ -65,6 +67,13 @@ def run(api,args):
if manage_xinetd != "0" and restart_xinetd != "0":
rc = os.system("/sbin/service xinetd restart")
+ if rc != 0:
+ print "- error: service xinetd restart failed"
+
+ if manage_ris_linuxd != "0" and restart_ris_linuxd != "0":
+ rc = os.system("/sbin/service ris-linuxd restart")
+ if rc != 0:
+ print "- error: service ris-linuxd restart failed"
return rc