Date: Mon, 14 Jun 1999 09:25:26 -0400 (EDT) From: Matt Behrens <matt@zigg.com> To: Gong Wei <ccegongw@nus.edu.sg> Cc: "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG> Subject: RE: *BSD init scripts Message-ID: <Pine.BSF.4.10.9906140854480.8248-100000@megaweapon.zigg.com> In-Reply-To: <762388C091FAD01180FF00A024621378E8EF04@exs01.ex.nus.edu.sg>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 14 Jun 1999, Gong Wei wrote: : In SysV world(Sorry for this as all along I was using SysV variant like : Linux/Solaris) there is something called runlevel. So rebooting is actually : going to run level 6 whereas shutting down (halt) is going to runlevel 0. : This process will call all K* scripts in the corresponding directory with a : "stop" argument. Then it will send TERM signal (15) to all running process. Except that Smoorenburg [sic]'s init, at least on the versions of Linux I'm forced to use at work, will TERM/KILL everything before the scripts get run. How helpful! :-) Seriously, though, rc.shutdown worked for me to do what you described. I certainly thought it was called before the TERM/KILL stuff. If it isn't, then something must have changed. (P.S. This is really only a -questions issue...) : "start" and/or "stop" and react accordingly. That is really not an issue at : all, the issue is whether the script will ever be called with a "stop" : argument or not. I know that on 3.2-RELEASE, all /usr/local/etc/rc.d/*.sh : will always be called with a "start" argument upon startup, but what about : shutting down/reboot? I don't believe this is implemented; in any event it would be very confusing to most of the *.sh scripts because most of them just start a daemon without checking for parameters. Matt Behrens <matt@zigg.com> Owner/Administrator, zigg.com Chief Engineer, Nameless IRC Network To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9906140854480.8248-100000>