Answer the question
In order to leave comments, you need to log in
How to make the service restart every hour through crontab?
There is billing, it has agents, and here is one agent that collects telephony, periodically freezes and stops collecting statistics, while its status is working. The company that supplied the billing said that they were working on the problem, but until it was resolved, I decided to restart it once an hour. I'm not on you with freebsd, but searching the Internet through crontab - e did the job
[[email protected] /usr/local/etc]# crontab -l
0 * * * * root /usr/local/etc/rc.d/LBphone.init restart
[[email protected] /usr/local/etc]# crontab -l
* * * * * root /usr/local/etc/rc.d/LBphone.init restart
Answer the question
In order to leave comments, you need to log in
First you need to look at what is inside /usr/local/etc/rc.d/LBphone.init and check if this script works at all.
By the way, it is not at all a fact that the restart key is able to start a stopped service; up to the point that this key may not be supported at all. Again - you need to look inside the script, what is being done there.
Well, it would be nice to look at the logs - both the crown and the system ones, and personally of this service.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question