From 17649c8793796bd52a559c0e1d3709235a86c1ae Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 17 Aug 2010 10:15:44 +0000 Subject: No functional change just code reshuffle. --- etc/inc/gwlb.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'etc/inc/gwlb.inc') diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 4a9decb..d5da8a8 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -243,11 +243,11 @@ EOD; killbypid("{$g['varrun_path']}/apinger.pid"); if (is_dir("{$g['tmp_path']}")) chmod("{$g['tmp_path']}", 01777); - if (!is_dir("{$g['vardb_path']}/rrd")) { + if (!is_dir("{$g['vardb_path']}/rrd")) mkdir("{$g['vardb_path']}/rrd", 0775); - } - if (is_dir("{$g['vardb_path']}/rrd")) - chown("{$g['vardb_path']}/rrd", "nobody"); + + @chown("{$g['vardb_path']}/rrd", "nobody"); + /* start a new apinger process */ mwexec_bg("/usr/local/sbin/apinger -c {$g['varetc_path']}/apinger.conf"); -- cgit v1.1