rc.local and rc.conf.local

2014-10-28 Thread Steve Litt
Hi all, I needed to enable the DHCP server on the machine that's going to become my OpenBSD/pf firewall/router/NAT, and the directions said to put this: # echo 'dhcpd_flags=' /etc/rc.conf.local On my machine there was no rc.conf.local, just an rc.local, so I put it there, and no joy, dhcpd

Re: rc.local and rc.conf.local

2014-10-28 Thread Josh Grosse
On 2014-10-28 09:46, Steve Litt wrote: Is /etc/rc.local just some artifact I should ignore, or does it actually have a purpose? It has a purpose. Some local startup activities may require scripting. The rc.conf.* files are parsed for variables, they are not scripts.

Re: rc.local and rc.conf.local

2014-10-28 Thread Adam Thompson
On 14-10-28 08:46 AM, Steve Litt wrote: Is /etc/rc.local just some artifact I should ignore, or does it actually have a purpose? Both. RTFM: rc(8), rc.conf(8), rcctl(8) While that manpage uses language like It is **advisable** to leave rc.conf untouched, the actual situation is much stricter

Re: rc.local and rc.conf.local

2014-10-28 Thread Steve Litt
On Tue, 28 Oct 2014 10:09:33 -0400 Josh Grosse j...@jggimi.homeip.net wrote: On 2014-10-28 09:46, Steve Litt wrote: Is /etc/rc.local just some artifact I should ignore, or does it actually have a purpose? It has a purpose. Some local startup activities may require scripting. The

Re: rc.local and rc.conf.local

2014-10-28 Thread Steve Litt
On Tue, 28 Oct 2014 09:11:51 -0500 Adam Thompson athom...@athompso.net wrote: The question you actually asked was about /etc/rc.local, which serves a completely different function. That file remains a shell script wherein you can put whatever custom craziness you like, that gets executed

Re: rc.local and rc.conf.local

2014-10-28 Thread Adam Thompson
On 14-10-28 10:34 AM, Steve Litt wrote: I think I understand. If I wanted to run daemontools at boot, I would put the svscanboot command in /etc/rc.local, right? Assuming there was no pre-built package, or port available, yes. For example, I have installed smokeping from source instead of

Re: rc.local and rc.conf.local

2014-10-28 Thread Josh Grosse
On 2014-10-28 11:45, Adam Thompson wrote: On 14-10-28 10:34 AM, Steve Litt wrote: I think I understand. If I wanted to run daemontools at boot, I would put the svscanboot command in /etc/rc.local, right? Assuming there was no pre-built package, or port available, yes. There are other valid

Re: rc.local and rc.conf.local

2014-10-28 Thread Alexander Hall
On October 28, 2014 5:05:47 PM CET, Josh Grosse j...@jggimi.homeip.net wrote: On 2014-10-28 11:45, Adam Thompson wrote: On 14-10-28 10:34 AM, Steve Litt wrote: I think I understand. If I wanted to run daemontools at boot, I would put the svscanboot command in /etc/rc.local, right? Assuming

Re: rc.local and rc.conf.local

2014-10-28 Thread Josh Grosse
On 2014-10-28 13:22, Alexander Hall wrote: On October 28, 2014 5:05:47 PM CET, Josh Grosse j...@jggimi.homeip.net wrote: These days I'm using mount_tmpfs(8), which inherits attributes from the mount point. FWIW, so did mount_mfs... Well, yeah. But not until 2004! :)