Sorry, but those are terrible examples. If your processes keep crashing, you should find and fix the underlying problem, or if you're forced to use unstable software, rely on something like upstart or daemontools to keep it running. And if your apache logs regularly fill your disk, add them to logrotate.