How to add new service into "Service Manager"?
Hello,
i found my firewall software (lfd) failed to be restarted. The failure:
Dec 31 08:09:34 myhost lfd[20265]: *Error* cannot fork: Cannot allocate memory, at line 8850
Dec 31 08:09:34 myhost lfd[20265]: daemon stopped
and i see command "service lfd start" works to start the daemon, so i wanted to ask how i can add this service into: WHM "Service Configuration "Service Manager to be monitored and auto-restarted I see i already have there one non-standard service in section "Additional Services". I searched knowledge base and the forums and found only one forum topic where is outdated link to knowledge base.
and i see command "service lfd start" works to start the daemon, so i wanted to ask how i can add this service into: WHM "Service Configuration "Service Manager to be monitored and auto-restarted I see i already have there one non-standard service in section "Additional Services". I searched knowledge base and the forums and found only one forum topic where is outdated link to knowledge base.
-
Hello, You can "checked on" lfd service option in the WHM " Service Configuration "Service Manager 0 -
I asked how to add, not how to enable. lfd is not on that page. 0 -
Should be, last one on the list. 0 -
As already mentioned, lfd is not on the page "Service Manager" (if you mean WHM page mentioned by member "SysSachin"), i asked how to manually add. 0 -
As I already mentioned, it should be there already. If its not, I might be concerned that CSF wasn't installed properly. 33531 You might find this link helpful: Adding Services to Chksrvd for Monitoring - The cPanel Admin 0 -
Thank you Infopro, that solved the issue. Not sure why lfd was not there, but i did commands: echo "service[lfd]=x,x,x,/etc/init.d/lfd restart,lfd,root" > /etc/chkserv.d/lfd echo "lfd:1" >> /etc/chkserv.d/chkservd.conf
first command will create lfd in Service manager and second enable its monitoring. if anyone have different service to monitor, i assume just replace "lfd" and make sure restart command works i not restarted chkservd, /var/log/chkservd.log appears to already check lfd0 -
Happy to help. :) 0
Please sign in to leave a comment.
Comments
7 comments