Subject: Re: rc.d Qn
To: rob <rob_mail@fastmail.fm>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-users
Date: 04/10/2002 20:27:52
--9UV9rz0O2dU/yYYn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Apr 11, 2002 at 04:21:18AM +1000, rob wrote:
> When rolling scripts for rc.d you can specify a command that is
> executed when /etc/rc.d/script start is executed.  I presume that a
> kill -QUIT is used when a /etc/rc.d/script stop is executed? =20
>=20
> Anyway to get to the point I have a number of services that use
> separate scripts for starting up, shutting down and restarting e.g.
> startup.sh & shutdown.sh how can I modify my custom
> /etc/rc.d/scriptxyz to execute the appropriate script for start, stop,
> restart etc..?

http://www.netbsd.org/Documentation/rc/ and /etc/rc.subr are very good
sources to start with (and end, in most cases ;).

regards,=20

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>   ASCII Ribbon campaign against  /"\=
 --
--                  <salo@silcnet.org>   e-mail in gratuitous HTML and  \ /=
 --
--                                       Microsoft proprietary formats   X =
 --
-- PGPkey: http://Xtrmntr.org/salo.pgp                                  / \=
 --
-- Key Fingerprint: DBEC 8BEC 9A90 ECEC 0FEF  716E 59CE B70B 7E3B 70E2     =
 --

--9UV9rz0O2dU/yYYn
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8tIQoWc63C347cOIRAkrUAKDMf3ppfGtnZbBrnTfM5LX53yLd5gCfdPQM
WDIBMXwSeMkkgEVRoonI4VQ=
=vRrq
-----END PGP SIGNATURE-----

--9UV9rz0O2dU/yYYn--