From 47ca895db2662f8c05512d37729a67f0eb262691 Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Sun, 6 Aug 2006 09:12:18 +0000 Subject: use config_init function to initialise config_usage --- emi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'emi') 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 -- cgit v1.2.1