Changeset 26
- Timestamp:
- Feb 4, 2008, 3:55:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r25 r26 15 15 # arping fping bind9-host arpwatch 16 16 17 my $KLASK_DB_FILE = '/var/cache/klask/klaskdb'; 18 my $KLASK_SW_FILE = '/var/cache/klask/switchdb'; 17 my $KLASK_VAR = '/var/cache/klask'; 19 18 my $KLASK_CFG_FILE = '/etc/klask.conf'; 19 my $KLASK_DB_FILE = '$KLASK_VAR/klaskdb'; 20 my $KLASK_SW_FILE = '$KLASK_VAR/switchdb'; 21 22 test_running_environnement(); 20 23 21 24 my $KLASK_CFG = YAML::LoadFile("$KLASK_CFG_FILE"); … … 99 102 exit; 100 103 104 sub test_running_environnement { 105 die "Configuration file $KLASK_CFG_FILE does not exists. Klask need it !\n" if not -e "$KLASK_CFG_FILE"; 106 die "Var folder $KLASK_VAR does not exists. Klask need it !\n" if not -d "$KLASK_VAR"; 107 } 108 101 109 ### 102 110 # fast ping dont l'objectif est de remplir la table arp de la machine
Note: See TracChangeset
for help on using the changeset viewer.