killbgproc.pl daemonizes, watches for running processes with no attached terminal and kills it. Easily configureable to define the minimum user id that you want to start killing.
You can download it from the following link: https://packetstormsecurity.com/files/download/22276/killbgproc.pl
Source: https://packetstormsecurity.com/files/22276/killbgproc.pl.html