lilalo

diff l3config.pm @ 85:3f92cd706473

* Исправлена ошибка с неверной очисткой XML-файла
с lablog'ом, при выполнении в пакетном режиме.
Он очищался, перед записью команд, а не надо было.
В результате терялась информация о сессиях.

Теперь очистка выполняется в самом самом начале
author devi
date Sat Feb 25 08:22:20 2006 +0200 (2006-02-25)
parents 2cb912bff2ea
children 62001c1e3295
line diff
     1.1 --- a/l3config.pm	Sat Feb 25 08:02:25 2006 +0200
     1.2 +++ b/l3config.pm	Sat Feb 25 08:22:20 2006 +0200
     1.3 @@ -76,12 +76,12 @@
     1.4      "files_keywords"    => "linux file",
     1.5  
     1.6      comment_width       => "300",
     1.7 -    note_width      => "500",
     1.8 -    time_width      => "6em",
     1.9 +    note_width          => "500",
    1.10 +    time_width          => "6em",
    1.11  
    1.12 -    "mode"          => "daemon",        # daemon | normal
    1.13 +    "mode"              => "daemon",        # daemon | normal
    1.14      "daemon_sleep_interval" => "10",
    1.15 -    "detach"        => "yes",
    1.16 +    "detach"            => "yes",
    1.17      "agent_pidfile"     => "$ENV{HOME}/.lilalo/l3-agent.pid",
    1.18  
    1.19      "backend_address"   => "192.168.15.254",
    1.20 @@ -89,53 +89,53 @@
    1.21      "backend_pidfile"   => "/tmp/l3-backend.pid",
    1.22      "backend_datafile"  => "/var/lilalo/lablogs-xml/backend.xml",
    1.23  
    1.24 -    "l3-agent"      => "l3-agent", 
    1.25 +    "l3-agent"          => "l3-agent", 
    1.26      "l3-backend"        => "l3-backend", 
    1.27  
    1.28      "course-name"       => "", 
    1.29      "course-code"       => "", 
    1.30 -    "course-date"       => 
    1.31 +    "course-date"       => "",
    1.32      "course-center"     => "", 
    1.33      "course-trainer"    => "", 
    1.34      "course-student"    => "", 
    1.35  
    1.36 -    "filter"        => "",
    1.37 +    "filter"            => "",
    1.38  #lm
    1.39      "show_host"         => "no",
    1.40  
    1.41  # Вспомогательные программы
    1.42  #"l3-report"    => "./lm-report",
    1.43 -    "l3-report"     => "./l3-report",
    1.44 +    "l3-report"         => "./l3-report",
    1.45  
    1.46  # Каталоги
    1.47      "path_lilalo"       => "/var/lilalo/",
    1.48      "path_classes"      => "/var/lilalo/classes/",
    1.49      "path_lablogs"      => "/var/lilalo/lablogs/",
    1.50      "courses_path"      => "/var/lilalo/courses/",
    1.51 -    "outpath"       => "/var/lilalo/out/",
    1.52 -    "path_web"      => "/var/www/l3",   # Путь к web-отчётам
    1.53 +    "outpath"           => "/var/lilalo/out/",
    1.54 +    "path_web"          => "/var/www/l3",   # Путь к web-отчётам
    1.55      "path_share"        => "./share/",      # Путь к web-отчётам
    1.56  
    1.57  # Файлы
    1.58 -    "runfile"       => "lm.run", 
    1.59 -    "logfile"       => "lm.log", 
    1.60 +    "runfile"           => "lm.run", 
    1.61 +    "logfile"           => "lm.log", 
    1.62  
    1.63 -    "class"         => "class",         # Имя файла класса
    1.64 +    "class"             => "class",         # Имя файла класса
    1.65      "class_suffix"      => ".xml",      # Cуффикс файла класса
    1.66 -    "classfile"     => "",
    1.67 +    "classfile"         => "",
    1.68  
    1.69 -    "sshkey"        => "$ENV{HOME}/.ssh/id_dsa.pub",
    1.70 -    "lmssh"         => "./lm-ssh",
    1.71 -    "lminstall"     => "./lm-install",
    1.72 -    "ssh_user"      => "r",
    1.73 +    "sshkey"            => "$ENV{HOME}/.ssh/id_dsa.pub",
    1.74 +    "lmssh"             => "./lm-ssh",
    1.75 +    "lminstall"         => "./lm-install",
    1.76 +    "ssh_user"          => "r",
    1.77  
    1.78 -    "l3scripts"     => "l3scripts",
    1.79 +    "l3scripts"         => "l3scripts",
    1.80  
    1.81  
    1.82      "cgi_path_info"     => "",
    1.83 -    "cgi2file"      => "",
    1.84 +    "cgi2file"          => "",
    1.85  
    1.86 -    "year"      =>  "2006",
    1.87 +    "year"              =>  "2006",
    1.88  );
    1.89  
    1.90  sub read_config_file