httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Browder <>
Subject [users@httpd] apache run status: how to tell as non-root user (on *nix)?
Date Tue, 21 Feb 2017 13:53:35 GMT
I need to programatically determine whether httpd is running or not,
whether I'm root or not. The only reliable way I have found is to use the
system command 'ps -C httpd' and grep the results.

Is there a better way?


Best regards,


View raw message