示例#1
0
function daemonStatus($daemon, $args = false)
{
    global $daemon_status;
    initDaemonStatus();
    $string = "{$daemon}";
    if ($args) {
        $string .= " {$args}";
    }
    return strpos($daemon_status, "'{$string}' running") !== false;
}
示例#2
0
function daemonStatus( $daemon, $args=false )
{
    global $daemon_status;

    initDaemonStatus();
    
    $string = "$daemon";
    if ( $args )
        $string .= " $args";
    return( strpos( $daemon_status, "'$string' running" ) !== false );
}