Project

General

Profile

« Previous | Next » 

Revision 1c4ec345

Added by Scott Ullrich about 20 years ago

Comment cleanups

View differences:

etc/inc/service-utils.inc
43 43
	if($params['stop']) {
44 44
		$tokill =& $params['stop'];
45 45
	} elseif($params['executable']) {
46
		// just nuke the executable
46
		/* just nuke the executable */
47 47
		$tokill = "/usr/bin/killall {$params['executable']}";
48 48
	} else {
49
		// make an educated guess (bad)
49
		/* make an educated guess (bad) */
50 50
		$tokill = array_pop(explode('/', array_shift(explode(' ', $params['start']))));
51 51
	}
52 52
	$towrite .= "rc_stop() {\n\t" . $tokill . "\n}\n\n";
......
124 124
}
125 125

  
126 126
function is_process_running($process) {
127
    /*
128
          DO NOT TOUCH THIS!  I AM REALLY TIRED OF FIXING
129
          SUCH A TRIVIAL FUNCTION.
130
          
131
                                 -GeekGod - 2005-06-25
132
    */
133 127
    $status = `/bin/ps ax | /usr/bin/grep {$process} | wc -l`;
134 128
    if($status > 2) return 1;
135 129
    return 0;

Also available in: Unified diff