Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Jan 2013 23:25:32 +0100
From:      olli hauer <ohauer@gmx.de>
To:        "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Cc:        Oleg Moskalenko <oleg.moskalenko@citrix.com>
Subject:   Re: What is policy about auto-editing config files on port install / deinstall?
Message-ID:  <50E6055C.9050005@gmx.de>
In-Reply-To: <031222CBCF33214AB2EB4ABA279428A3012CA8FA98EF@SJCPMAILBOX01.citrite.net>
References:  <50E49A73.2070008@quip.cz> <CACdU%2Bf9WKAsLZHqHMZKtgGoBRL%2BR9do0qfTL0d_c_8_e6Tb4bw@mail.gmail.com> <50E5FCDA.80906@quip.cz> <031222CBCF33214AB2EB4ABA279428A3012CA8FA98EF@SJCPMAILBOX01.citrite.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2013-01-03 23:14, Oleg Moskalenko wrote:
> So, what is the general recommended policy on the network services ports in regard to /etc/rc.conf file ? If I install a port that creates a service "foodbank", then which choice is better:
> 
> 1) "Automatically" edit /etc/rc.conf in the port installation script to include the line:
> 	foodbank_enable="YES", 
> 
> or:
> 
> 2) Display a message to the user like "you must edit /etc/rc.conf to add line foodbank=YES file" ?
> 
> The same question applies to the port de-installation.
> 
> Thanks !
> Oleg
> 

Hi Oleg,

the file /etc/rc.conf(.local) should be never touched by an install script.
In case you will enable the network service you have to do this explicit by yourself.

For the rc system it doesn't matter later if the line is present but the port no longer installed.

--
Regards,
olli



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