Fix daemonization command status test
Fix daemonization command status test

In bin/elasticsearch, we grep the command line looking for various flags
that indicate the process should be daemonized. To do this, we simply
test command status from the grep. Sadly, this is utterly broken
(unreleased) as instead we are testing the output of the command, not
the command status. This commit fixes this issue.

Relates #26196

scorpionvicky/elasticsearch,umeshdangat/elasticsearch,s1monw/elasticsearch,uschindler/elasticsearch,coding0011/elasticsearch,mjason3/elasticsearch,coding0011/elasticsearch,wenpos/elasticsearch,gingerwizard/elasticsearch,gfyoung/elasticsearch,scottsom/elasticsearch,scorpionvicky/elasticsearch,mjason3/elasticsearch,nknize/elasticsearch,brandonkearby/elasticsearch,rajanm/elasticsearch,Stacey-Gammon/elasticsearch,umeshdangat/elasticsearch,mohit/elasticsearch,Stacey-Gammon/elasticsearch,markwalkom/elasticsearch,mohit/elasticsearch,masaruh/elasticsearch,wenpos/elasticsearch,mjason3/elasticsearch,gingerwizard/elasticsearch,coding0011/elasticsearch,rajanm/elasticsearch,scottsom/elasticsearch,s1monw/elasticsearch,gingerwizard/elasticsearch,wenpos/elasticsearch,fred84/elasticsearch,rajanm/elasticsearch,gingerwizard/elasticsearch,rajanm/elasticsearch,fred84/elasticsearch,HonzaKral/elasticsearch,brandonkearby/elasticsearch,wangtuo/elasticsearch,s1monw/elasticsearch,qwerty4030/elasticsearch,uschindler/elasticsearch,markwalkom/elasticsearch,scottsom/elasticsearch,umeshdangat/elasticsearch,rajanm/elasticsearch,pozhidaevak/elasticsearch,GlenRSmith/elasticsearch,umeshdangat/elasticsearch,kalimatas/elasticsearch,mjason3/elasticsearch,mohit/elasticsearch,masaruh/elasticsearch,ThiagoGarciaAlves/elasticsearch,kalimatas/elasticsearch,scottsom/elasticsearch,Stacey-Gammon/elasticsearch,robin13/elasticsearch,wangtuo/elasticsearch,fred84/elasticsearch,uschindler/elasticsearch,maddin2016/elasticsearch,GlenRSmith/elasticsearch,kalimatas/elasticsearch,pozhidaevak/elasticsearch,gingerwizard/elasticsearch,qwerty4030/elasticsearch,rajanm/elasticsearch,qwerty4030/elasticsearch,scorpionvicky/elasticsearch,pozhidaevak/elasticsearch,pozhidaevak/elasticsearch,robin13/elasticsearch,robin13/elasticsearch,maddin2016/elasticsearch,gfyoung/elasticsearch,kalimatas/elasticsearch,wangtuo/elasticsearch,umeshdangat/elasticsearch,wenpos/elasticsearch,nknize/elasticsearch,maddin2016/elasticsearch,gfyoung/elasticsearch,brandonkearby/elasticsearch,markwalkom/elasticsearch,HonzaKral/elasticsearch,gingerwizard/elasticsearch,markwalkom/elasticsearch,markwalkom/elasticsearch,qwerty4030/elasticsearch,GlenRSmith/elasticsearch,qwerty4030/elasticsearch,coding0011/elasticsearch,scottsom/elasticsearch,kalimatas/elasticsearch,mohit/elasticsearch,Stacey-Gammon/elasticsearch,markwalkom/elasticsearch,masaruh/elasticsearch,HonzaKral/elasticsearch,fred84/elasticsearch,ThiagoGarciaAlves/elasticsearch,scorpionvicky/elasticsearch,masaruh/elasticsearch,robin13/elasticsearch,brandonkearby/elasticsearch,brandonkearby/elasticsearch,ThiagoGarciaAlves/elasticsearch,uschindler/elasticsearch,masaruh/elasticsearch,wenpos/elasticsearch,maddin2016/elasticsearch,wangtuo/elasticsearch,wangtuo/elasticsearch,gfyoung/elasticsearch,gfyoung/elasticsearch,s1monw/elasticsearch,mjason3/elasticsearch,nknize/elasticsearch,GlenRSmith/elasticsearch,coding0011/elasticsearch,nknize/elasticsearch,gingerwizard/elasticsearch,uschindler/elasticsearch,nknize/elasticsearch,scorpionvicky/elasticsearch,mohit/elasticsearch,GlenRSmith/elasticsearch,ThiagoGarciaAlves/elasticsearch,Stacey-Gammon/elasticsearch,HonzaKral/elasticsearch,maddin2016/elasticsearch,robin13/elasticsearch,fred84/elasticsearch,ThiagoGarciaAlves/elasticsearch,pozhidaevak/elasticsearch,ThiagoGarciaAlves/elasticsearch,s1monw/elasticsearch