/usr/local/etc/rc.d vs /etc/rc.conf question

Erik Norgaard norgaard at locolomo.org
Thu Jan 20 02:27:22 PST 2005


Toomas Aas wrote:
> Andy Firman wrote:
> 
>> On my 4.10 box, there is a mysql-server script in /usr/local/etc/rc.d 
>> and nothing
>> in /etc/rc.conf, yet mysql-server starts up a boot time. 
>> Why?   
> 
> 
> Your mysql-server port was probably installed before 31.10.2004. It was 
> modified to use rc.conf variables at that date (see /usr/ports/UPDATING).
> 

AFAIK 4.x will run any script in /usr/local/etc/rc.d which ends in .sh 
and is executable. The script may use variables stored in /etc/rc.conf 
but in old installations the scripts has not been updated.

If you want not to start mysql-server on startup, rename the script or 
change permissions.

Cheers, Erik

-- 
Ph: +34.666334818                           web: http://www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID:  A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2


More information about the freebsd-questions mailing list