diff options
author | Renato Botelho <renato@netgate.com> | 2016-03-03 15:08:00 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-03-03 15:08:00 -0300 |
commit | ffb8625fb38169ed43c79999e7754a9372ea9d85 (patch) | |
tree | d6a46414a284bd5b271de866001c4b8f1df2cf60 /src/etc | |
parent | bed6c19b3c78bf1841f360a076ee10a457716d2d (diff) | |
download | pfsense-ffb8625fb38169ed43c79999e7754a9372ea9d85.zip pfsense-ffb8625fb38169ed43c79999e7754a9372ea9d85.tar.gz |
IF PHP is not running, just exit silently
Diffstat (limited to 'src/etc')
-rwxr-xr-x | src/etc/rc.packages | 5 |
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 = ''; |