File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -553,15 +553,16 @@ function rrd_configure($verbose = false, $bootup = false)
553
553
554
554
EOD ;
555
555
556
- $ rrdupdatesh .= "sleep 60 \n" ;
556
+ $ rrdupdatesh .= "\n" ;
557
+ $ rrdupdatesh .= " for UNUSED in \$(seq 1 60); do sleep 1; done \n" ;
557
558
$ rrdupdatesh .= "done \n" ;
558
559
559
560
/* write the rrd update script */
560
561
$ updaterrdscript = '/var/db/rrd/updaterrd.sh ' ;
561
- $ fd = fopen (" $ updaterrdscript" , " w " );
562
- fwrite ($ fd , " $ rrdupdatesh" );
562
+ $ fd = fopen ($ updaterrdscript, ' w ' );
563
+ fwrite ($ fd , $ rrdupdatesh );
563
564
fclose ($ fd );
564
- chmod ($ updaterrdscrip , 0755 );
565
+ chmod ($ updaterrdscript , 0755 );
565
566
566
567
/* start traffic collector */
567
568
mwexecf ('/usr/sbin/daemon -f -p %s %s ' , ['/var/run/updaterrd.pid ' , $ updaterrdscript ]);
You can’t perform that action at this time.
0 commit comments