Hacker News new | ask | show | jobs
by x0x0 3958 days ago
Well, if it works for a day:

    1 0 * * * kill -HUP $(cat /var/run/my_server.pid) >> /var/log/my_server/error.log
You think I've kidding but I've done this in production. Now I'm more likely to use god/monit.

In fact, not joking at all: this is how I make Finder not slow down. Every 4 hours, I restart it via crontab.