DragonFly BSD
DragonFly kernel List (threaded) for 2003-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: configuration files


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Dec 2003 11:52:28 -0800 (PST)

:    We already have start/stop/restart/rcvar support though quite a few
:    of the RCNG files only support 'start'.
:
:    You know, it occurs to me that we could augment RCNG to record subsystem
:    status in the kernel environment and write a little shell script for
:    /sbin which allows you to issue start/stop/restart/rcvar commands for
:    particular RCNG files (rather then have to type 'cd /etc/rc.d; sh ./blah
:    stop').  
:
:    e.g. something like this:
:
:    rcng start <blah>		Start entity
:    rcng stop <blah>		Stop entity
:    rcng restart <blah>		Restart entity
:    rcng rcvar <blah>		List rcvars associated with entity
:    rcng list			List all entities and their current run status
:
:    So for example:
:
:    rcng sendmail restart
:
:    In fact, I think this would be extremely useful, and so easy that I think
:    I can work it up in an hour or two with only minor changes to the kernel
:    to support kenv -w var=blah to record the current subsystem status.
:
:							-Matt

   Even less then an hour.  This is very cool... I won't use kenv, that's
   too nasty.  I'll use our varsym support to record RCNG module status.
   I've already written the script, I just have to modify the RCNG files
   to record the status and incorporate the dependancy list and we will have
   a very, very powerful run-time system management tool.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



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