Code

gosa-si-server: early prepare UID / GID as daemon_log needs it
authorlhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 18 Mar 2009 08:55:35 +0000 (08:55 +0000)
committerlhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 18 Mar 2009 08:55:35 +0000 (08:55 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13550 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-si/gosa-si-server

index 85fd54d8ca29d65363ac975240e8eb0baa4028b6..b3b48e6709017711047dfa4ff405067f66eab402 100755 (executable)
@@ -3204,6 +3204,10 @@ GetOptions("h|help" => \&usage,
         "no-arp+" => \$no_arp,
            );
 
+# Prepare UID / GID as daemon_log may need it quite early
+$root_uid = getpwnam('root');
+$adm_gid = getgrnam('adm');
+
 #  read and set config parameters
 &check_cmdline_param ;
 &read_configfile($cfg_file, %cfg_defaults);
@@ -3251,8 +3255,6 @@ if ($server_headURL =~ /\/tag\// ||
 }
 
 # Prepare log file and set permissons
-$root_uid = getpwnam('root');
-$adm_gid = getgrnam('adm');
 open(FH, ">>$log_file");
 close FH;
 chmod(0440, $log_file);