Skip to content
Snippets Groups Projects
Verified Commit 9f922598 authored by David Beniamine's avatar David Beniamine
Browse files

Fix bug killing config

parent 9a5cee2b
No related branches found
No related tags found
No related merge requests found
......@@ -293,15 +293,15 @@ sub start_daemon(){
# Handle runtime errors
$SIG{__DIE__} = sub {do_stop(shift,1)};
$SIG{__WARN__} = sub {$Logger->warning(shift)};
$CFG::CFG{DISKS}{RUNNING}="";
save_config();
notify();
$Logger->info("Daemon opérationnel");
# Read config
if (my $err = ReadCfg($CFGFILE)) {
do_stop("Erreur '$err'", 1)
}
$CFG::CFG{DISKS}{RUNNING}="";
save_config();
notify();
# Read fifo
while(my $line = <FIFO>){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment