landrush icon indicating copy to clipboard operation
landrush copied to clipboard

Centos6: restart_dnsmsq: systemctl command not found

Open danielfn opened this issue 9 years ago • 1 comments

systemd is not used in Centos 6.x distros, so landrush/lib/landrush/cap/host/redhat/restart_dnsmasq.rb fails when it tries to run sudo systemctl restart dnsmasq.

In this case, it should run sudo service dnsmasq restart > /dev/null 2>&1, just like it is done for debian/restart_dnsmasq.rb

danielfn avatar Jan 12 '17 12:01 danielfn

In fact, '/sbin/service dnsmasq restart' will work on EL boxes from about EL3->EL7 at least.

It's a good accessor-script to the init saveur-du-jour (and ideally will outlast the current fridge-art!).

bish0polis avatar Aug 13 '19 15:08 bish0polis