Redis Daemon not creating a PID file

For those experiencing on Debian buster: Editing nano /etc/systemd/system/redis.service and adding this line below redis [Service] ExecStartPost=/bin/sh -c “echo $MAINPID > /var/run/redis/redis.pid” It suppose to look like this: [Service] Type=forking ExecStart=/usr/bin/redis-server /etc/redis/redis.conf ExecStop=/bin/kill -s TERM $MAINPID ExecStartPost=/bin/sh -c “echo $MAINPID > /var/run/redis/redis.pid” PIDFile=/run/redis/redis-server.pid then: sudo systemctl daemon-reload sudo systemctl restart redis.service Check redis.service status: sudo … Read more

How to monitor delayed_job with monit

Here is how I got this working. Use the collectiveidea fork of delayed_job besides being actively maintained, this version has a nice script/delayed_job daemon you can use with monit. Railscasts has a good episode about this version of delayed_job (ASCIICasts version). This script also has some other nice features, like the ability to run multiple … Read more

Debugging monit

I’ve had the same problem. Using monit’s verbose command-line option helps a bit, but I found the best way was to create an environment as similar as possible to the monit environment and run the start/stop program from there. # monit runs as superuser $ sudo su # the -i option ignores the inherited environment … Read more

Simple way of restarting crashed processes?

I’d look in to daemontools (http://cr.yp.to/daemontools.html). Supervise was built for exactly this purpose — to start processes and watch them, restarting them immediately if they ever terminate. You could still use monit if you need to do anything more complicated than a simple “is it still running” check, and if the process needs to be … Read more

Free alternatives to M/Monit interface for the Monit systems management system [closed]

I contacted M/Monit support directly about the pricing issue… When asked if they offer a discount for education: “Unfortunately no, but for not-for profit organisations we might donate a license.” But the fact remains that the unlimited license cost is intentionally low at ~$590. As for free alternative monitoring frameworks, I worked at a DevOps-focused … Read more