Page 1 of 1

DHCP Ubuntu/Amahi disable

Posted: Mon Aug 06, 2012 10:39 pm
by TomMuh
Hello,

I am looking for help to the dhcp and dns function to disable it permanently. Also the possibility of runtime-2345 does not work.

Is there more information?

Re: DHCP Ubuntu/Amahi disable

Posted: Tue Aug 07, 2012 4:46 am
by bigfoot65
The only way to stop the DHCP server from starting on boot is to comment out the start on runlevel [2345] in /etc/init/isc-dhcp-server.conf and /etc/init/isc-dhcp-server6.conf files.

This is an Ubuntu issue and the only solution we have found so far. One other possibility is to rename the init script so it cannot find it.

There is no reason to disable the DNS as it will work internally on the HDA providing you do not point it to anything. If you must disable it, same process should work.

Be aware there are tradeoffs for disabling the DHCP/DNS servers on the HDA.

http://www.amahi.org/faq#is-dhcp-server-required

Re: DHCP Ubuntu/Amahi disable

Posted: Tue Sep 11, 2012 10:39 am
by jtcweb
I'm trying to do this and cannot get it done. I keep getting prevented from writing the file. I am running on Ubuntu. Any help would be appreciated.

Re: DHCP Ubuntu/Amahi disable

Posted: Tue Sep 11, 2012 10:43 am
by bigfoot65
You have to edit the file using root privileges.

Foe example:

Code: Select all

sudo vi /etc/init/isc-dhcp-server.conf

Re: DHCP Ubuntu/Amahi disable

Posted: Tue Sep 11, 2012 11:21 am
by jtcweb
Thanks that did it.

I'm a Linux newbie.

Re: DHCP Ubuntu/Amahi disable

Posted: Tue Nov 06, 2012 9:59 am
by chaosarg
Hi! I disabled the server as you mentioned (with sudo) but it keeps autostarting at boot time. In Amahi Settings is showing Start at boot time and watchdog unchecked, the runlevel [2345] lines in /etc/init/isc-dhcp-server.conf and /etc/init/isc-dhcp-server6.conf are still commented out

Re: DHCP Ubuntu/Amahi disable

Posted: Tue Nov 06, 2012 10:05 am
by bigfoot65
Don't know how that is possible. Commenting out those lines prevents it from starting. I have tested it and had no issues. Is there anything else you have installed or modified?

Check /etc/monit/conf.d/ for DHCP conf files. If there are any there, comment out the start/stop lines. That should not be needed, but might help. Then restart monit.