summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d5e9bb5)
raw | patch | inline | side by side (parent: d5e9bb5)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Sep 2008 15:00:11 +0000 (15:00 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Sep 2008 15:00:11 +0000 (15:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12434 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-client | patch | blob | history | |
gosa-si/gosa-si-server | patch | blob | history |
diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client
index 2e5a36166d8423204bb0bca7f40762efe720cdd1..1b6fa0cebb2a88436e113b79477f58a8bc6bd592 100755 (executable)
--- a/gosa-si/gosa-si-client
+++ b/gosa-si/gosa-si-client
$client_status = "developmental" ;
}
+# Prepare log file
+my $root_uid = getpwnam('root');
+my $adm_gid = getgrnam('adm');
+chmod(0640, $log_file);
+chown($root_uid, $adm_gid, $log_file);
+
+
daemon_log(" ", 1);
daemon_log("$prg started!", 1);
daemon_log("INFO: status: $client_status", 1);
diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index 3936bbf5027c467ba5749fef65d8c385264b857c..08df17437c0e22b9bbd32312149b8bdb494b090e 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
if(not defined $level) { $level = 1 }
if(defined $log_file){
open(LOG_HANDLE, ">>$log_file");
- chmod 0640, $log_file;
if(not defined open( LOG_HANDLE, ">>$log_file" )) {
print STDERR "cannot open $log_file: $!";
return
$server_status = "developmental" ;
}
+# Prepare log file
+my $root_uid = getpwnam('root');
+my $adm_gid = getgrnam('adm');
+chmod(0640, $log_file);
+chown($root_uid, $adm_gid, $log_file);
+
daemon_log(" ", 1);
daemon_log("$0 started!", 1);