I have the following CRON entries for one of my sites:

1
2
3
39 * * * * killall -9 dispatch.fcgi >/dev/null 2>&1
0,4,8,12,16,20,24,28,32,36,40,44,48,52,56 * * * * \
curl http://www.weputlightsup.com/ >/dev/null 2>&1

What does this do ? The first entry kills all of my FastCGI processes at 39 minutes past the hour. The second one pings a specific URL to ensure the FastCGI processes are always up and running, every four minutes.

I am certainly not the first to mention this technique, see View processes, grep out by user and then kill all their PIDs.

Seems strange though that I couldn’t find much references to this technique while Googling around.

Anyway, I hope this helps someone.

Leave a Reply

 

Search

A picture of me

I am François Beausoleil, a Ruby on Rails coder. During the day, I work on XLsuite. At night, I am interested many things. Read my biography

Tags

(3) (1) (0) (2) (1) (1) (2) (2) (1) (2) (1) (2) (1) (2) (1) (1) (1) (1) (2) (14) (1) (1) (1) (1) (2) (1) (1) (2) (0) (1) (2) (1) (3) (1) (1) (1) (1) (1) (1) (0) (3) (2) (1) (2) (2) (1) (3) (2) (8) (8) (9) (12) (1) (1) (3) (1) (1) (1) (1) (1) (1) (2) (2) (2) (1) (1) (3) (1) (3) (1) (0) (23) (1) (1) (0) (1) (1) (1) (23) (25) (1) (1) (13) (1) (1) (2) (3) (1) (1) (4) (1) (2) (3) (0) (1) (7) (3) (1) (5) (5) (2) (2) (2) (4) (6) (7) (1) (0) (1) (1) (2) (2) (1) (4) (12) (2) (1) (2) (4) (1) (1) (1) (2) (8) (2) (3) (2) (2) (1) (3) (1) (1)

Links

Projects I work on

Categories

Archives