Date: Mon, 24 May 2004 14:51:18 -0400 From: Christopher Nehren <apeiron@comcast.net> To: Kirk Strauser <kirk@strauser.com>, Gerard Seibert <gerard-seibert@rcn.com> Cc: freebsd-questions@freebsd.org Subject: Re: Proper way to start a program at log-on Message-ID: <20040524185118.GB53827@prophecy.dyndns.org> In-Reply-To: <877jv28utv.fsf@strauser.com> References: <Pine.WNT.4.60.0405231754520.3584@Treneq> <877jv28utv.fsf@strauser.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Sun, May 23, 2004 at 21:42:04 EDT, Kirk Strauser scribbled these
curious markings:
> Nope, that's fine. Of course, you *could* just leave it running forever, if
> you really wanted to.
No, it is anything _but_ fine. If Gerard makes a mistake with
mergemaster, his shutdown changes are lost. The proper way to do so is,
as others have suggested, to place a script in /usr/local/etc/rc.d/. If
you want to do it completely properly, using rcNG (with rc.subr and
rc.conf) is the way to go.
Generally speaking, any well-behaved port leaves /etc alone completely.
The only change that you should ever have to make to anything in /etc
is a ${portname}_enable="YES" in /etc/rc.conf, if the port uses rcNG.
Having third-party software muck around in /etc (especially things like
a shutdown script) is a Linux prob ... er ... methodology. I'd hate to
think of what would happen if an entry in /etc/rc.shutdown was
incorrect, and caused the script to fail, thus not returning 0...
--
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
-
Unix is user friendly. However, it isn't idiot friendly.
-
Please CC me in all replies, even if I'm on the relevant list(s).
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAskQmk/lo7zvzJioRAufbAKC4jwmSsudjjfQ5tjsILwZeiycQnQCgqf1S
cBhnpB7xk/tIEIq7qqeSrEw=
=pmS3
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040524185118.GB53827>
