Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

Centos6: restart_dnsmsq: systemctl command not found #302

Open
danielfn opened this issue Jan 12, 2017 · 1 comment
Open

Centos6: restart_dnsmsq: systemctl command not found #302

danielfn opened this issue Jan 12, 2017 · 1 comment

Comments

@danielfn
Copy link

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

@bish0polis
Copy link

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!).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants