September 2016
Intermediate to advanced
270 pages
5h 16m
English
This one is a personal hatred of mine. A developer needs a service to run indefinitely, so they just enable a cronjob that never ends, or simply have a cronjob that operates incredibly frequently (such as once every few seconds).
A cronjob is a scheduled job that will run at a predetermined time. It's not something that operates services for you. Not only is this messy from an architectural perspective, but it scales horribly and becomes terrible to monitor.
A constantly processing task should be treated as a daemon and not as something that runs on the basis of a cronjob.
Monit is a tool in Linux systems that allows you to imitate services.
You can install Monit using the apt-get command:
sudo apt-get install monit
Once ...
Read now
Unlock full access