From 2053bd010b8b4e1d09330c862f51b25ea60cc3bb Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 27 May 2016 06:59:41 +0200 Subject: [PATCH] rc: php must be ready before configd because it may use it Also remove the captive portal RRD graph removal. We really need to improve the GUI in order to solve the issue of stale RRD files gracefully. --- src/etc/rc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index 8d11ee4c6..f1e2fdcd9 100755 --- a/src/etc/rc +++ b/src/etc/rc @@ -213,6 +213,9 @@ fi # Recreate capabilities DB /usr/bin/cap_mkdb /etc/login.conf +# Set up the correct php.ini content +/usr/local/etc/rc.php_ini_setup + # startup configd /usr/local/etc/rc.d/configd start @@ -221,15 +224,11 @@ fi /usr/local/etc/rc.backup_netflow restore /usr/local/etc/rc.backup_rrd restore -# Set up the correct php.ini content -/usr/local/etc/rc.php_ini_setup - # Execute the early syshook / plugin commands /usr/local/etc/rc.syshook early # let the PHP-based configuration subsystem set up the system now echo -n "Launching the init system..." -rm -f /root/lighttpd* touch /var/run/booting /usr/local/etc/rc.bootup rm /var/run/booting @@ -244,10 +243,6 @@ fi # Execute the normal syshook / plugin commands /usr/local/etc/rc.syshook start -# 16.1 migration code for stale captive portal files to be removed in 16.7 -rm -rf /var/db/rrd/*-concurrent.rrd -rm -rf /var/db/rrd/*-loggedin.rrd - echo -n "Starting CRON... " cd /tmp && /usr/sbin/cron -s 2>/dev/null echo "done."