From: lhm-gosa Date: Wed, 18 Mar 2009 08:55:35 +0000 (+0000) Subject: gosa-si-server: early prepare UID / GID as daemon_log needs it X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=88945b11386637f9d1fc003147d00e763478297d;p=gosa.git gosa-si-server: early prepare UID / GID as daemon_log needs it git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13550 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-si/gosa-si-server b/trunk/gosa-si/gosa-si-server index 85fd54d8c..b3b48e670 100755 --- a/trunk/gosa-si/gosa-si-server +++ b/trunk/gosa-si/gosa-si-server @@ -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);