View previous topic :: View next topic |
Author |
Message |
dman777 Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 10 Jan 2007 Posts: 1004
|
Posted: Sat Jul 13, 2019 4:50 am Post subject: dhcpcd shows running in ps - how to disable on boot up? |
|
|
Without uninstalling, how can I keep dhcpcd from running? I see that rc-update is not bringing it up on the default level. I am using static ip address successfully with:
Code: | localhost /home/one # cat /etc/conf.d/net
config_enp37s0="192.168.1.5"
routes_enp37s0=("192.168.1.50"
"default via 192.168.1.50"
)
|
Code: |
localhost /home/one # ps -elf | grep -i dhcpcd
5 S root 4088 1 0 80 0 - 1260 do_epo 23:44 ? 00:00:00 /sbin/dhcpcd -q
|
_________________ <h5>Checkout <em>#grandmasboy</em> on <em>freenode</em>...chat with jayP bot from the movie!</h5> |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pjp Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/1154772887439692d88303b.jpg)
Joined: 16 Apr 2002 Posts: 20588
|
Posted: Sat Jul 13, 2019 5:49 am Post subject: |
|
|
Code: | grep -Ri dhcpcd /etc/init.d/ | Should show other services that reference it.
Or maybe something in /etc/conf.d/net. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dman777 Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 10 Jan 2007 Posts: 1004
|
Posted: Sat Jul 13, 2019 2:59 pm Post subject: |
|
|
This is what I have here:
Code: |
localhost /home/one # grep -Ri dhcpcd /etc/init.d/
/etc/init.d/dhcpcd:command=/sbin/dhcpcd
/etc/init.d/dhcpcd:pidfile=/var/run/dhcpcd.pid
localhost /home/one # /etc/init.d/dhcpcd status
* status: started
localhost /home/one # rc-update delete dhcpcd default
* rc-update: service `dhcpcd' is not in the runlevel `default'
localhost /home/one # /etc/init.d/net.lo status
* status: stopped
localhost /home/one # |
Strange, the ethernet device enp37s0 comes up automatically on boot even though /etc/init.d/net.lo, which is softlinked to it, is not running. Is this because netmount it running? Could netmount be bringing up dhcpcd also? _________________ <h5>Checkout <em>#grandmasboy</em> on <em>freenode</em>...chat with jayP bot from the movie!</h5> |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54834 Location: 56N 3W
|
Posted: Sat Jul 13, 2019 3:32 pm Post subject: |
|
|
dman777,
dhcpcd will run for any interfaces listed in /etc/init.d/ that do not have an entry in /etc/conf.d/net.
net.lo should always be up. Horrible things happen to Xorg otherwise.
netmount will try to start networking, if its not already started.
Exacty what "start networking" means depends on the content of /etc/rc.conf
If you don't have any network filesystems listed in /etc/fstab then netmount is not needed.
-- edit --
/etc/init.d/net.lo is a real script. Its run as whatever calls it, so for a symlink net.eth0 -> net.lo it runs as net.eth0 and so on. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dman777 Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 10 Jan 2007 Posts: 1004
|
Posted: Sat Jul 13, 2019 3:54 pm Post subject: |
|
|
ah.... makes sense now! Thank you both for the help! _________________ <h5>Checkout <em>#grandmasboy</em> on <em>freenode</em>...chat with jayP bot from the movie!</h5> |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
krinn Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/gallery/Blade Runner/movie_blade_runner_howl.gif)
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Jul 13, 2019 4:02 pm Post subject: |
|
|
NeddySeagoon wrote: | net.lo should always be up. Horrible things happen to Xorg otherwise. |
NeddySeagoon made horrible mistake with net.lo service and lo the local network
net.lo should not be not start, because it's only use by another interface (eth0...) and not used directly, it's an utility script.
i think the name comes because originaly net.lo was starting loopback, but it's handle by the service "loopback" now (which should be in boot runlevel), and nobody has think changing net.lo name to "imutilityforotherinteraces" would be useful.
so lo, loopback or 127.0.0.1 interface should always be up, and it's handle by "loopback" service, while net.lo is of no use (for anyone?) directly.
if you have another interface that is not refered in conf.d/net then dhcpcd will handle it, in order to prevent this, create an entry for that interface asking it to do nothing (or forcing it to use some dummy fixed ip address) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54834 Location: 56N 3W
|
Posted: Sat Jul 13, 2019 8:50 pm Post subject: |
|
|
krinn,
Just as you get to grips with these things, they change under you. :)
Maybe I'm just out of date.
Code: | $ rc-update show
...
net.lo | boot
... |
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
toralf Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/10034462014367c4dfe33c1.gif)
Joined: 01 Feb 2004 Posts: 3943 Location: Hamburg
|
Posted: Sat Jul 13, 2019 9:21 pm Post subject: |
|
|
Unbelievable, /me still had net.lo in runlevel default over the last 5 years - removed it now. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
krinn Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/gallery/Blade Runner/movie_blade_runner_howl.gif)
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Jul 14, 2019 9:20 am Post subject: |
|
|
Another proof the forum is a golden tool if anyone need any ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|