summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-03-03 15:08:00 -0300
committerRenato Botelho <renato@netgate.com>2016-03-03 15:08:00 -0300
commitffb8625fb38169ed43c79999e7754a9372ea9d85 (patch)
treed6a46414a284bd5b271de866001c4b8f1df2cf60 /src/etc
parentbed6c19b3c78bf1841f360a076ee10a457716d2d (diff)
downloadpfsense-ffb8625fb38169ed43c79999e7754a9372ea9d85.zip
pfsense-ffb8625fb38169ed43c79999e7754a9372ea9d85.tar.gz
IF PHP is not running, just exit silently
Diffstat (limited to 'src/etc')
-rwxr-xr-xsrc/etc/rc.packages5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/etc/rc.packages b/src/etc/rc.packages
index f4ec045..aad0f7e 100755
--- a/src/etc/rc.packages
+++ b/src/etc/rc.packages
@@ -49,6 +49,11 @@ if ($argc == 1) {
exit;
}
+/* If PHP is not running, silently abort and run registration during boot */
+if (!isvalidpid('/var/run/php-fpm.pid')) {
+ exit;
+}
+
$pkg = '';
$when = '';
OpenPOWER on IntegriCloud