Page MenuHomePhabricator

switchdc check on mwmaint for running PHP processes should ignore php-fpm processes
Closed, ResolvedPublic


When stopping maintenance jobs, the switchdc cookbook runs ! pgrep -c php, which fails because there are still php-fpm processes running (from noc.wm.o). It displayed a message like "Stray php processes still present on the codfw maintenance host, please check" even though ps showed no actual PHP processes, just php-fpm

It should look for only processes running /usr/bin/php instead.

Event Timeline

This is actually pretty easy

Change 710114 had a related patch set uploaded (by Legoktm; author: Legoktm):

[operations/software/spicerack@master] mediawiki: Don't emit \"Stray php processes...\" warning for php-fpm

Change 710114 merged by jenkins-bot:

[operations/software/spicerack@master] mediawiki: Ignore php-fpm when stopping cronjobs

Will be included in the next spicerack release.