Subject: Re: admin script for ipfilter
To: Jeremy C. Reed <email@example.com>
From: Darren Reed <darrenr@NetBSD.org>
Date: 01/06/2007 11:27:26
On Fri, Dec 29, 2006 at 06:21:07PM -0600, Jeremy C. Reed wrote:
> As it is now, we can get status of a service that "is disabled but the
> processes or whatever are actually active/running and if it is enabled but
> not active or running or whatever."
> $ /etc/rc.d/inetd status
> $ /etc/rc.d/inetd onestatus
> inetd is running as pid 9511.
What I don't like about this is you have to interpret from the
output of two different commands what the real condition is.
The blank output from "status" tells me nothing.
I want to see something like this:
$ rcadmin inetd status
disabled but is running as pid 9511.
This is (I believe) perfectly clear output that requires no interpretation.