summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.packages
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/rc.packages')
-rwxr-xr-xsrc/etc/rc.packages10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/etc/rc.packages b/src/etc/rc.packages
index d503b6b..a957b81 100755
--- a/src/etc/rc.packages
+++ b/src/etc/rc.packages
@@ -52,6 +52,11 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/* If PHP is not running, silently abort and run registration during boot */
+if (!file_exists('/var/run/php-fpm.pid')) {
+ exit;
+}
+
require_once("config.inc");
require_once("functions.inc");
require_once("filter.inc");
@@ -73,11 +78,6 @@ 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