summaryrefslogtreecommitdiffstats
path: root/etc/inc/service-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-26 02:59:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-26 02:59:51 +0000
commit1c4ec3454537fd3f29b571b4bdd44ea971f119d3 (patch)
treec105eac6f51b88d3a87c8b57f0d9fd2db9959dad /etc/inc/service-utils.inc
parent4b8fffef87a66587cf8ae19d0e6a942c977b0e53 (diff)
downloadpfsense-1c4ec3454537fd3f29b571b4bdd44ea971f119d3.zip
pfsense-1c4ec3454537fd3f29b571b4bdd44ea971f119d3.tar.gz
Comment cleanups
Diffstat (limited to 'etc/inc/service-utils.inc')
-rw-r--r--etc/inc/service-utils.inc10
1 files changed, 2 insertions, 8 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc
index 1d75d43..9f9a487 100644
--- a/etc/inc/service-utils.inc
+++ b/etc/inc/service-utils.inc
@@ -43,10 +43,10 @@ function write_rcfile($params) {
if($params['stop']) {
$tokill =& $params['stop'];
} elseif($params['executable']) {
- // just nuke the executable
+ /* just nuke the executable */
$tokill = "/usr/bin/killall {$params['executable']}";
} else {
- // make an educated guess (bad)
+ /* make an educated guess (bad) */
$tokill = array_pop(explode('/', array_shift(explode(' ', $params['start']))));
}
$towrite .= "rc_stop() {\n\t" . $tokill . "\n}\n\n";
@@ -124,12 +124,6 @@ function restart_service($name) {
}
function is_process_running($process) {
- /*
- DO NOT TOUCH THIS! I AM REALLY TIRED OF FIXING
- SUCH A TRIVIAL FUNCTION.
-
- -GeekGod - 2005-06-25
- */
$status = `/bin/ps ax | /usr/bin/grep {$process} | wc -l`;
if($status > 2) return 1;
return 0;
OpenPOWER on IntegriCloud