2 # Monitor the usermin server on this host
4 # Check the PID file to see if usermin is running
7 local %uconfig = &foreign_config($_[1]);
9 &read_file("$uconfig{'usermin_dir'}/miniserv.conf", \%miniserv) ||
10 return { 'up' => -1 };
11 if (open(PID, $miniserv{'pidfile'}) && chop($pid = <PID>) && kill(0, $pid)) {
21 &depends_check($_[0], "usermin");