apache run status: how to tell as non-root user (on *nix)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "users@xxxxxxxxxxxxxxxx" <users@xxxxxxxxxxxxxxxx>
- Subject: apache run status: how to tell as non-root user (on *nix)?
- From: Tom Browder <tom.browder@xxxxxxxxx>
- Date: Tue, 21 Feb 2017 13:53:35 +0000
- Reply-to: users@xxxxxxxxxxxxxxxx
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?
Thanks.
Best regards,
-Tom
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]