From e83940a00f00089bdb80af2416924a51f75e238b Mon Sep 17 00:00:00 2001 From: rettenbe Date: Wed, 18 Mar 2009 14:09:15 +0000 Subject: [PATCH] fixes error output to STDERR for function check_pid git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13552 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 932f2878f..3c6574574 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -336,7 +336,7 @@ sub daemon_log { my ($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime, $mtime, $ctime, $blksize, $blocks) = stat($log_file); if((not $uid eq $root_uid) || (not $gid eq $adm_gid)) { chown($root_uid, $adm_gid, $log_file); - } + } chomp($msg); #$msg =~s/\n//g; # no newlines are allowed in log messages, this is important for later log parsing @@ -407,7 +407,7 @@ sub check_pid { if( -f "/proc/$pid/stat" ) { my($stat) = `cat /proc/$pid/stat` =~ m/$pid \((.+)\).*/; if( $stat ) { - daemon_log("ERROR: Already running",1); + print STDERR "\nERROR: Already running!\n"; close( LOCK_FILE ); exit -1; } -- 2.30.2