diff options
author | Florent Villard <warly@mandriva.com> | 2006-08-06 09:12:18 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-08-06 09:12:18 +0000 |
commit | 47ca895db2662f8c05512d37729a67f0eb262691 (patch) | |
tree | d9d0b182e42eaf673364331cd6e5c1a7cad5c7b8 /emi | |
parent | bed5d95e68387ea119cf55a5e1dfc9eb2b98554b (diff) | |
download | iurt-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
Diffstat (limited to 'emi')
-rwxr-xr-x | emi | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |