Opensuse 13.2 dhcp-server 4.2.6
Trying to start dhcp-server within Webmin gives this error:
sh: /etc/init.d/dhcpd: No such file or directory
How to start the dhcp server ?
Opensuse 13.2 dhcp-server 4.2.6
Trying to start dhcp-server within Webmin gives this error:
sh: /etc/init.d/dhcpd: No such file or directory
How to start the dhcp server ?
DHCP server is starting with the command rcdhcpd start.
Anyone knows how to change in Webmin this line sh: /etc/init.d/dhcpd into rcdhcpd start.
First, you should strongly consider using webyast instead of webmin. Webyast is similar to webmin in that you can manage your machine using a web browser.
https://en.opensuse.org/Portal:WebYaST
Actually, commands like rcdhcpd are legacy.
Current recommended commands implement the systemd command systemctl like
systemctl start|stop|restart|status dhcpd
You actually should be trying to modify your webmin to map to the above command instead.
If you want to see exactly what “systemctl … dhcpd.service” does, you can inspect the dhcpd Unit file
cat /usr/lib/systemd/system/dhcpd.service
From that, you will see that you are pointing to a wrong location and different commands to stop/start for the dhcpd binary
TSU
Thanks for the webyast tip.
The question was how to modify webmin to map to the command systemctl start|stop|restart|status dhcpd.
For the motivated,
I’m sure it’s possible and maybe even not that difficult.
The webmin source is public
Download, figure out the architecture and maybe search specifically for the string command you already found, then replace.
Instead of downloading the source directly, you can clone the webmin code to create your own copy on github and then you have your own code to play around with and make modiications.
After you’ve made your modification you can download directly to your own machines and suggest your contribution upstream to the webmin maintainers (enter a merge request on the parent site.
If during your investigation and attempting to change code you need assistance, go ahead and post here again with your specific issue and I’m sure you’ll get help.
TSU