5

I am trying to stop the dhcpd ,but whenever I stop it ,it restart again immediately.

$ ps aux | grep dhcp
dhcpd     7116  0.0  0.1  19672  6604 ?        Ss    16:33   0:00
dhcpd -user dhcpd -group dhcpd -f -q -4 -pf 
/run/dhcp-server/dhcpd.pid -cf /etc/dhcp/dhcpd.conf wlan0

I tried

/etc/init.d/dhcpd stop

but with no luck

bash: /etc/init.d/dhcpd: No such file or directory

also

service dhcpd stop

gives me this

dhcpd: unrecognized service
4
  • Try this: sudo service isc-dhcp-server stop Mar 27, 2014 at 13:49
  • This command returns "stop: Unknown job: isc-dhcp-server"
    – Gray
    Mar 28, 2014 at 10:00
  • Then you'll need to find what is the exact name of the service running dhcp. Type "sudo service " and then press Tab twice, and see if any of the services available has something related to dhcp. Mar 28, 2014 at 13:49
  • you can try: ``` kill -9 $(cat /var/run/dhcp-server/dhcpd.pid)
    – mark kats
    Feb 7, 2023 at 10:11

0

You must log in to answer this question.

Browse other questions tagged .