approved practice question

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

approved practice question

Jack J. Woehr
Let's say a port has to start a daemon to work. To have that happen at
startup I would
assume that means an rc.local phrase ... Is it approved practice to have
a port edit rc.local?
Or is there a safer and saner practice for this sort of thing?

--
Jack J. Woehr            # "Self-delusion is
http://www.well.com/~jax #  half the battle!"
http://www.softwoehr.com #  - Zippy the Pinhead

Reply | Threaded
Open this post in threaded view
|

Re: approved practice question

Mike Erdely
On Sat, Oct 11, 2008 at 12:28:57PM -0600, Jack Woehr wrote:
> Let's say a port has to start a daemon to work. To have that happen at  
> startup I would
> assume that means an rc.local phrase ... Is it approved practice to have  
> a port edit rc.local?
> Or is there a safer and saner practice for this sort of thing?

Put something in pkg/MESSAGE or create a README.OpenBSD file.

-ME

Reply | Threaded
Open this post in threaded view
|

Re: approved practice question

patrick keshishian
On Sat, Oct 11, 2008 at 11:43 AM, Mike Erdely <[hidden email]> wrote:

> On Sat, Oct 11, 2008 at 12:28:57PM -0600, Jack Woehr wrote:
>> Let's say a port has to start a daemon to work. To have that happen at
>> startup I would
>> assume that means an rc.local phrase ... Is it approved practice to have
>> a port edit rc.local?
>> Or is there a safer and saner practice for this sort of thing?
>
> Put something in pkg/MESSAGE or create a README.OpenBSD file.
>
> -ME

see postgresql port as an example.

--patrick

Reply | Threaded
Open this post in threaded view
|

Re: approved practice question

Thomas Pfaff-2
In reply to this post by Jack J. Woehr
On Sat, 11 Oct 2008 12:28:57 -0600
Jack Woehr <[hidden email]> wrote:

> Let's say a port has to start a daemon to work. To have that happen at
> startup I would
> assume that means an rc.local phrase ... Is it approved practice to have
> a port edit rc.local?
> Or is there a safer and saner practice for this sort of thing?

Do not modify /etc/rc.local.  Write a message in the ports pkg directory
that explains what must be done after installation.  See for example
net/samba/pkg/MESSAGE-main.  You might also want to remind the user to
remove the lines in /etc/rc.conf when uninstalling through pkg/UNMESSAGE.