Closed computergeek125 closed 6 years ago
Sorry for the really late response on this issue - I've recently switched jobs so my attention has been fully somewhere else lately
In the next few weeks I will be working on making all of these commands work universally across major distributions
Thanks for the report!
@computergeek125 thank you for this again, I've made these modifications based on Redhat derivatives CentOS / Fedora / Redhat
https://github.com/Akkadius/glass-isc-dhcp/commit/3d30b00e9616f0baab3476be2789eb962954d9f8
Let me know if you have any questions, also curious to hear your feedback on using Glass, are you an operator?
Hello!
First of all, great work! I was able to get this running in under a day. However, I had to make a minor change to the start/stop code that allows this application to control the CentOS/RHEL-based ISC DHCPD service.
On these distros, the service is in systemd as
dhcpd.service
instead ofisc-dhcp-server.service
as it is in Debian-based distros.It's a pretty simple fix:
Since the
service
command redirects tosystemctl
(at least for now), everything's all fine and happy.Additionally, I have created a systemd starter service for this Node app and an rsyslog conf snippet that picks up the
node
output and dumps it into its own log file so it's not in/var/log/messages
or/var/log/syslog
if you want one or both of those as well. With the starter service, systemd can intelligently detect when the process needs to be started/stopped, and you can use it to make sure that this starts after dhcpd. Note that due to the service naming difference between CentOS/RHEL and Debian, a minor modification would be needed to get it working on a Debian-based system.