init and initscripts (was: RHAT bug?)

Tom Buskey tom at buskey.name
Thu Feb 2 09:17:00 EST 2006


On 2/1/06, Ben Scott <dragonhawk at gmail.com> wrote:

> > It's worth noting Apple has ditched the whole lot and gone with launchd
> ...
>
>   Wasn't familiar with it.  I just looked it up.  Yet Another daemon
> manager/init replacement.  There's gotta be over a dozen out there by
> now.  Ho hum.  :)
>
>   One idea I saw pitched once that I liked more was a command called
> "needs" (or it might have been "need").  An initscript would start off
> with commands like this:
>
>         needs network
>         needs dns
>         needs whatever
>
> Initscripts also had a way to identify what they provide (I forget if
> it was a command or some syntax in a comment (a la chkconfig) or
> what).  When entering a runlevel, the system could just run all the
> scripts in that directory.  No ordering with numbers in the names was
> needed.  When "needs" ran, it would see if the facility was available,
> and if not, start it.  So initscripts started their own dependencies.
> Very Unixy.
>
>   For service watchdogging and restarting, a separate utility was
> provided.  I forget the name of that, too, but it was basically like
> that Perl script you posted, except with more bells and whistles.



Hmm, I posted to the wrong thread, too early.

Solaris SMF soes the dependencies and watchdogging.  XML descriptions.
Translation from "standard files" to the XML descriptions.  Esp. for
inetd.conf.

Instead of init 3, svcadm milestone multi-user-server.

Some nice debugging:

# svcs
STATE          STIME    FMRI
legacy_run     Feb_01   lrc:/etc/rcS_d/S50sk98sol
legacy_run      9:31:01 lrc:/etc/rc2_d/S10lu
legacy_run      9:31:01 lrc:/etc/rc2_d/S20sysetup
.
.
online          9:33:13 svc:/network/ssh:default
online          9:39:16 svc:/system/name-service-cache:default
offline        Feb_01   svc:/application/print/ipp-listener:default
offline         9:29:54 svc:/application/print/rfc1179:default

# svcs -xv /application/print/ipp-listener
svc:/application/print/ipp-listener:default (Internet Print Protocol
Listening Service)
 State: offline since Wed Feb 01 09:04:14 2006
Reason: Service svc:/application/print/server:default is disabled.
   See: http://sun.com/msg/SMF-8000-GE
  Path: svc:/application/print/ipp-listener:default
          svc:/application/print/server:default
   See: man -M /usr/share/man -s 4 mod_ipp
Impact: This service is not running.

# svcs -xv /network/ssh
svc:/network/ssh:default (SSH server)
 State: online since Wed Feb 01 09:33:13 2006
   See: man -M /usr/share/man -s 1M sshd
   See: /var/svc/log/network-ssh:default.log
Impact: None.


And it's all open source as part of OpenSolaris


--
A strong conviction that something must be done is the parent of many bad
measures.
  - Daniel Webster
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20060202/75591e80/attachment.html


More information about the gnhlug-discuss mailing list