[SOLVED] Issues with dhcpcd-openrc 02 June 2020, 21:17:38 I think I've come across an issue with dhcpcd-openrc./etc/init.d/dhcpcd specifies "pidfile=/run/dhcpcd.pid" but dhcpcd itself puts its pidfile into /run/dhcpcd/pid. Whilst everything still works correctly, openrc expects the pidfile to be somewhere it's not, finds it's missing and assumes that it's crashed, as can be seen in both rc-status and "rc-service dhcpcd status" and won't allow "rc-service dhcpcd stop" to work correctly.Changing the pidfile line in the init script resolves the issue.Thanks again for all your good work. Last Edit: 05 June 2020, 16:07:51 by nous
Re: Issues with dhcpcd-openrc Reply #1 – 02 June 2020, 21:47:15 Taking a look at this issueSeems using supervisor=supervise-daemon should fix this, as it will keep up with the pid fine and also assigning a pid manually could be an issue due to interface name also being used affects pidname in the current pkgIf you can, know how to build a pkg from a PKGBUILD, well easy to say how makepkg -si(will install missing deps and install), you can test out this updated version I made:https://gitea.artixlinux.org/ndowens/packages-openrc/src/branch/master/dhcpcd-openrc You'd need to download both the *.initd file and PKGBUILD and run makepkg -si in the same dir as those files. I am testing it currently and so far it seems to work without crashing Last Edit: 02 June 2020, 22:11:25 by ndowens
Re: Issues with dhcpcd-openrc Reply #2 – 03 June 2020, 10:20:48 Yes, that certainly works fine here.Out of interest, is there any particular reason why supervise-daemon isn't used throughout ALL the scripts? It seems to simplify individual scripts as you no longer need to specify the pidfile location.Thanks, Dave
Re: Issues with dhcpcd-openrc Reply #3 – 03 June 2020, 20:54:34 Quote from: Dave – on 03 June 2020, 10:20:48Yes, that certainly works fine here.Out of interest, is there any particular reason why supervise-daemon isn't used throughout ALL the scripts? It seems to simplify individual scripts as you no longer need to specify the pidfile location.Thanks, DaveMost of the time it isn't needed, sometimes one works better than the other
Re: Issues with dhcpcd-openrc Reply #4 – 04 June 2020, 09:18:38 Great, thanks for your help and the quick fix. 1 Likes