Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 1995 08:55:52 -0500
From:      peter@taronga.com (Peter da Silva)
To:        hackers@freebsd.org
Subject:   Re: ports startup scripts
Message-ID:  <199509221355.IAA20833@bonkers.taronga.com>
References:  <199509211228.IAA23028@healer.com> <199509221101.RAA24680@hq.icb.chel.su>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <199509221101.RAA24680@hq.icb.chel.su>,
Serge A. Babkin <babkin@hq.icb.chel.su> wrote:
>Or make 'start' and 'stop' scripts really different files without any links.

Please, no. Link 'em or symlink 'em. Digital Unix screwed up by putting them
in /sbin, but they did this right:

	/sbin/init.d	all scripts
	/sbin/rc*.d	symlinks to init.d/...

That gives you one place for finding all the service start/stop stuff (init.d),
and you don't go editing rc3.d/S00frog and forget to update rc2.d/K85frog.

The init.d directory becomes the one stop shop like /etc/rc[.local], and the
rc*.d becomes your toggles like the YES/NO stuff in /etc/sysconfig, and it
becomes easier to productise ports and packages that need to start up daemons.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509221355.IAA20833>