explicit use of /etc/rc.d vs service

Isaac (.ike) Levy ike at blackskyresearch.net
Wed Jan 23 16:15:14 UTC 2013


On Jan 23, 2013, at 11:05 AM, Alexander Yerenkow wrote:

> 2013/1/23 Eitan Adler <lists at eitanadler.com>
> 
>> Would anyone object to a patch which converts uses of
>> "/etc/rc.d/daemon start" to "service daemon start" and the like?
>> I would like to see service(1) become the standard interface to using
>> services.
>> 


A decade of muscle memory will protest, but this is a very good idea- service(1) has been there since 7.x.

There should be a clear of RC, because many users wrap their own daemon services using the base operating system mechanisms- (e.g. your patch should not mangle this on the actual RC page).

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcd.html

--
If included, it may be worthwhile to focus on the service(1) man page, so this doesn't get confused with other abominable 'service' wrapper utilities on other *NIX'es.
They are quite different than this RC wrapper, and it would be a shame for a new user to get them confused.

> What it will do if there is both /etc/rc.d/A and /usr/local/etc/rc.d/A
> ?

This sort of thing raises a very good point, and without kidding, what about /my/custom/hier/location/etc/rc.d/A

Best,
.ike





More information about the freebsd-doc mailing list