Hi,
I have tried to Settings -> Servers and unchecking "watch dog" and "start on boot" for both services, but they still start on boot. I have also tried to comment out the start bits in the /etc/init/isc-dhcp-server.conf file as suggested in the wiki http://wiki.amahi.org/index.php/Turning_off_DHCP but it ddin't do anything either.
Using Ubuntu 12.04. any ideas?
Thanks
cannot disable DHCP/DNS servers
Re: cannot disable DHCP/DNS servers
The wiki guidance should have done the trick. Unless there is something new that we have not encountered yet.
I presume you also stopped the servers. You can try editing the /etc/monit/conf.d/dhcp.conf or whatever it is named. Comment out the start/stop lines, then restart monit.
I presume you also stopped the servers. You can try editing the /etc/monit/conf.d/dhcp.conf or whatever it is named. Comment out the start/stop lines, 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
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: cannot disable DHCP/DNS servers
Pretty much ignore my previous post. None of it worked correctly. Here's what I ended up doing to get DHCP server to stay off.
Via the HDA Dashboard I disabled watchdog and start on boot. Then rebooted the machine and presto, it is now off.
UPDATE: It seems to come back to life after a few minutes, so this does not work either. No matter what I have tried, nothing seems to work.
Code: Select all
sudo update-rc.d -f isc-dhcp-server remove
sudo update-rc.d -f isc-dhcp-server6 remove
sudo mv /etc/init.d/isc-dhcpserver /home/username
sudo mv /etc/init.d/isc-dhcpserver6 /home/username
UPDATE: It seems to come back to life after a few minutes, so this does not work either. No matter what I have tried, nothing seems to work.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
-
- Posts: 3
- Joined: Mon Nov 12, 2012 8:09 pm
Re: cannot disable DHCP/DNS servers
so is that it then? Ubuntu has no mechanism to shut down the DHCP/DNS service? I wish ubuntu server came with a control panel.
Re: cannot disable DHCP/DNS servers
It does not appear there is way. This is an Ubuntu bug I believe. I am still researching, but not having a lot of luck.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: cannot disable DHCP/DNS servers
Tried something new and it appears to have worked.
Then I unchecked watchdog and start on boot. Rebooted the machine and checked the status in the dashboard servers section. It was stopped
I claim victory!!
Code: Select all
sudo cd /etc/init
sudo mv isc-dhcpserver.conf isc-dhcp-server.override
sudo mv isc-dhcpserver6.conf isc-dhcp-server6.override
I claim victory!!
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: cannot disable DHCP/DNS servers
coool!
do the override files have any meaning? or is it just to get them out of the way?
this seems to be a great clue to the root cause of the issue. any insights into why this works?
do the override files have any meaning? or is it just to get them out of the way?
this seems to be a great clue to the root cause of the issue. any insights into why this works?
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1
Re: cannot disable DHCP/DNS servers
According to what I have read, renaming upstart services in this manner prevents them from running. Apparently Ubuntu looks for .conf files in that directory. If it does not find them, the service will not run. I don't think the naming matters as long as they are not .conf files. We could use disabled or override and it would work.
If you try to start it manually, it will not work as well. The only way to return the service to normal is rename the files back to .conf. If we could do this in the Dashboard, that would be cool.
If you try to start it manually, it will not work as well. The only way to return the service to normal is rename the files back to .conf. If we could do this in the Dashboard, that would be cool.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
-
- Posts: 3
- Joined: Mon Nov 12, 2012 8:09 pm
Re: cannot disable DHCP/DNS servers
OK, that worked. I'm still surpirsed that a professional distro doesn't have a command to enable/disable services at boot. something like this would be great:
service dhcpserver start|stop|restart|disable|enable|status
Or even better a GUI system panel made by ubuntu to do this stuff.
Is there a similar way to disable DNS also? Thanks.
service dhcpserver start|stop|restart|disable|enable|status
Or even better a GUI system panel made by ubuntu to do this stuff.
Is there a similar way to disable DNS also? Thanks.
Re: cannot disable DHCP/DNS servers
They are in between the legacy and upstart service conversion as are many distros. The typical start/stop is there, but services are enabled and disabled differently in both.
Hopefully one day it will get fixed. Of course, have to expect some issues with FREE software. With open source, sometimes there is a price to pay. Not a big deal, just an annoyance really.
As for the DNS, there is no reason to disable it. The HDA needs it to resolve things locally. If you disable it, I believe it will break Amahi. Since you are using your routers DHCP, would think you would use its DNS as well. The HDA DNS will run on its own fine without interferring with your routers DNS. However, if you do want to disable it, should be the same method.
BTW, you can point the HDA DNS to your router's or another DNS provider easily using the wiki guidance:
http://wiki.amahi.org/index.php/Changin ... S_provider
Hopefully one day it will get fixed. Of course, have to expect some issues with FREE software. With open source, sometimes there is a price to pay. Not a big deal, just an annoyance really.
As for the DNS, there is no reason to disable it. The HDA needs it to resolve things locally. If you disable it, I believe it will break Amahi. Since you are using your routers DHCP, would think you would use its DNS as well. The HDA DNS will run on its own fine without interferring with your routers DNS. However, if you do want to disable it, should be the same method.
BTW, you can point the HDA DNS to your router's or another DNS provider easily using the wiki guidance:
http://wiki.amahi.org/index.php/Changin ... S_provider
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
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 2 guests