File lazy_suse_sync.diff of Package cobbler
--- cobbler/modules/sync_post_restart_services.py
+++ cobbler/modules/sync_post_restart_services.py 2011/02/17 16:20:30
@@ -41,10 +41,10 @@
if rc != 0:
logger.error("dhcpd -t failed")
return 1
- rc = utils.subprocess_call(logger,"/etc/rc.d/init.d/dhcpd restart", shell=True)
+ rc = utils.subprocess_call(logger,"/etc/init.d/dhcpd restart", shell=True)
elif which_dhcp_module == "manage_dnsmasq":
if restart_dhcp != "0":
- rc = utils.subprocess_call(logger, "/etc/rc.d/init.d/dnsmasq restart")
+ rc = utils.subprocess_call(logger, "/etc/init.d/dnsmasq restart")
has_restarted_dnsmasq = True
else:
logger.error("unknown DHCP engine: %s" % which_dhcp_module)
@@ -52,9 +52,9 @@
if manage_dns != "0" and restart_dns != "0":
if which_dns_module == "manage_bind":
- rc = utils.subprocess_call(logger, "/etc/rc.d/init.d/named restart", shell=True)
+ rc = utils.subprocess_call(logger, "/etc/init.d/named restart", shell=True)
elif which_dns_module == "manage_dnsmasq" and not has_restarted_dnsmasq:
- rc = utils.subprocess_call(logger, "/etc/rc.d/init.d/dnsmasq restart", shell=True)
+ rc = utils.subprocess_call(logger, "/etc/init.d/dnsmasq restart", shell=True)
elif which_dns_module == "manage_dnsmasq" and has_restarted_dnsmasq:
rc = 0
else: