[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Top 5 things that aren't in Debian but should be :-)

On Tue, Jan 13, 2004 at 02:19:47AM -0700, Eric Schwartz wrote:
> On Tuesday, Jan 13, 2004, at 02:04 America/Denver, Warren Turkal wrote:
> >There is also the problem of knowing whether a script executed 
> >successfully
> >or not.
> This is a real problem.  It's perfectly possible for a sysadmin to typo 
> an entry in
> /etc/dhcpd.conf (for instance :), run '/etc/init.d/dhcp restart' and 
> have no idea that dhcp isn't running unless she reflexively pgrep's for 
> it, or checks /var/log/syslog for errors.

perhaps using daemonic (or better, the idea[1] behind daemonic) to xml-ize a daemon
startup and then write the corrisponding init.d shell script, this way it would
be easy to wrap around and check for (un)successfulness

	<description>Squid proxy cache</description>
	<message>Squid proxy cache</message>
	<daemon name="squid">
		<executable checkexit="true">/sw/sbin/squid</executable>

my two cents,

[1] daemonic is used (apparently) only by the fink project but the idea is really
great, although it needs some work to be adapted even to very complex init.d
scripts (e.g. checking a condition, eventually services dependancy) 
Filippo Giunchedi 
GNU/PG key: 6B79D401
Random signature below:

A child of five would understand this. Send someone to fetch a child of five.
-- Groucho Marx

Reply to: