From: janw Date: Tue, 11 Mar 2008 16:09:40 +0000 (+0000) Subject: Corrected check_pid X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=11a50efeb8981e94b2a0a4af80105014187d301f;p=gosa.git Corrected check_pid git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9688 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 88d672fbe..c279c7943 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -316,7 +316,8 @@ sub check_pid { chomp( $pid ); if( -f "/proc/$pid/stat" ) { my($stat) = `cat /proc/$pid/stat` =~ m/$pid \((.+)\).*/; - if( $0 eq $stat ) { + if( $stat ) { + daemon_log("ERROR: Already running",1); close( LOCK_FILE ); exit -1; }