From 11a50efeb8981e94b2a0a4af80105014187d301f Mon Sep 17 00:00:00 2001 From: janw Date: Tue, 11 Mar 2008 16:09:40 +0000 Subject: [PATCH] Corrected check_pid git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9688 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.30.2