DHCP Ubuntu/Amahi disable

TomMuh
Posts: 1
Joined: Wed Jul 04, 2012 1:43 am

DHCP Ubuntu/Amahi disable

Postby TomMuh » Mon Aug 06, 2012 10:39 pm

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?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: DHCP Ubuntu/Amahi disable

Postby bigfoot65 » Tue Aug 07, 2012 4:46 am

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
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

jtcweb
Posts: 5
Joined: Fri Sep 07, 2012 7:19 am

Re: DHCP Ubuntu/Amahi disable

Postby jtcweb » Tue Sep 11, 2012 10:39 am

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.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: DHCP Ubuntu/Amahi disable

Postby bigfoot65 » Tue Sep 11, 2012 10:43 am

You have to edit the file using root privileges.

Foe example:

Code: Select all

sudo vi /etc/init/isc-dhcp-server.conf
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

jtcweb
Posts: 5
Joined: Fri Sep 07, 2012 7:19 am

Re: DHCP Ubuntu/Amahi disable

Postby jtcweb » Tue Sep 11, 2012 11:21 am

Thanks that did it.

I'm a Linux newbie.

chaosarg
Posts: 12
Joined: Sat Jul 07, 2012 12:53 pm

Re: DHCP Ubuntu/Amahi disable

Postby chaosarg » Tue Nov 06, 2012 9:59 am

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: DHCP Ubuntu/Amahi disable

Postby bigfoot65 » Tue Nov 06, 2012 10:05 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 44 guests