Re: How do you start a non-standard daemon/program near end of boot?

2007-11-24 Thread NetOne - Doichin Dokov

Rob Lytle P=P0P?P8QP0:

Hi,

I've read all the relevant boot and rc type manuals and they only give
a vague reference to starting programs with
rc.local or rc.conf.local.   I want to start wpa_supplicant and I
haven't seen any variables for doing it.  Some OS's have
the /usr/local/etc/rc.d directory for such purposes.

Thanks,  Rob

  
Just add arbitrary commands to /etc/rc.local - it is executed at the end 
of the boot process.




Re: How do you start a non-standard daemon/program near end of boot?

2007-11-24 Thread Nick Guenther
On Nov 24, 2007 10:37 PM, Rob Lytle [EMAIL PROTECTED] wrote:
 Hi,

 I've read all the relevant boot and rc type manuals and they only give
 a vague reference to starting programs with
 rc.local or rc.conf.local.   I want to start wpa_supplicant and I
 haven't seen any variables for doing it.  Some OS's have
 the /usr/local/etc/rc.d directory for such purposes.

Have you tried
$ sudo mg /etc/rc.local
yet?

rc.conf is just a shell script that gives variables which /etc/rc
reads and uses to decide what to launch
rc.local is just a shell script that gets run at the end of /etc/rc
Put your calls in rc.local
or make /etc/rc.mydaemons and call it from /etc/rc
or something.
It's a pretty simple system.

-Nick



Re: How do you start a non-standard daemon/program near end of boot?

2007-11-24 Thread Daniel Ouellet

I've read all the relevant boot and rc type manuals and they only give
a vague reference to starting programs with
rc.local or rc.conf.local.   I want to start wpa_supplicant and I
haven't seen any variables for doing it.  Some OS's have
the /usr/local/etc/rc.d directory for such purposes.


It's pretty clear here that you should put it inside /etc/rc.local:

http://openbsd.org/faq/faq10.html#rc

Just as the example in the docs provide:

if [ -x /usr/local/sbin/daemonx ]; then
 echo -n ' daemonx';   /usr/local/sbin/daemonx
fi

Obviously, you need to know how to start the daemon you want to use.

Then if you want to shut it down, use the rc.shutdown, also in the docs.

Best,

Daniel



Re: How do you start a non-standard daemon/program near end of boot?

2007-11-24 Thread Rob Lytle
NetOne - Doichin Dokov said:

Rob Lytle P=P0P?P8QP0:
 Hi,

 I've read all the relevant boot and rc type manuals and they only give
 a vague reference to starting programs with
 rc.local or rc.conf.local.   I want to start wpa_supplicant and I
 haven't seen any variables for doing it.  Some OS's have
 the /usr/local/etc/rc.d directory for such purposes.

 Thanks,  Rob


Just add arbitrary commands to /etc/rc.local - it is executed at the end
of the boot process.
-

Thanks for the info.  I was making it more complicated than it is.  Also
thanks for other peoples' posts.   I might have WPA-PSK faster than
I thought.

Sincerely,  Rob.


-- 
Emancipate yourself from mental slavery, none but ourselves can free
our minds  Bob Marley, Redemption Song