aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2006-08-06 09:12:18 +0000
committerFlorent Villard <warly@mandriva.com>2006-08-06 09:12:18 +0000
commit47ca895db2662f8c05512d37729a67f0eb262691 (patch)
treed9d0b182e42eaf673364331cd6e5c1a7cad5c7b8
parentbed5d95e68387ea119cf55a5e1dfc9eb2b98554b (diff)
downloadiurt-47ca895db2662f8c05512d37729a67f0eb262691.tar
iurt-47ca895db2662f8c05512d37729a67f0eb262691.tar.gz
iurt-47ca895db2662f8c05512d37729a67f0eb262691.tar.bz2
iurt-47ca895db2662f8c05512d37729a67f0eb262691.tar.xz
iurt-47ca895db2662f8c05512d37729a67f0eb262691.zip
use config_init function to initialise config_usage
-rwxr-xr-xemi9
1 files changed, 8 insertions, 1 deletions
diff --git a/emi b/emi
index f415e4c..141f7c6 100755
--- a/emi
+++ b/emi
@@ -27,7 +27,7 @@
#
use strict;
-use Iurt::Config qw(config_usage get_date);
+use Iurt::Config qw(config_usage get_date config_init);
my $program_name = 'emi';
my %run;
@@ -59,4 +59,11 @@ config_usage(\%config_usage, $config) if $run{config_usage};
print {$run{LOG}} "$program_name\n";
+config_init(\%config_usage, $config, \%run);
+
+$run{pidfile_home} = $config->{tmp};
+$run{pidfile} = "ulri";
+my $pidfile = check_pid(\%run);
+
+
exit