List Info

Thread: starting a program at boot time




starting a program at boot time
country flaguser name
United States
2008-03-05 11:50:28
how do i  start a program  at boot time?

-- 
-----------------------------------------------
Bill Banks                         508-829-2005
Wachusett Programming              Ourweb
http://www.ourweb.net
http://www.ourwebtempl
ates.com
  


_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: starting a program at boot time
user name
2008-03-05 12:24:07
> how do i  start a program  at boot time?

simplest to add to rc.local

or as a user - add

reboot command
in crontab
>
> -- 
> -----------------------------------------------
> Bill Banks                         508-829-2005
> Wachusett Programming              Ourweb
> http://www.ourweb.net
> http://www.ourwebtempl
ates.com
> 
>
> _______________________________________________
> freebsd-questionsfreebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
>
>
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: starting a program at boot time
user name
2008-03-05 12:45:43
how do i  start a program  at boot time?
>
>
What is the exact program you want to start at boot time? 
Is this a
standard program that is typically started at boot time or
is it some sort
of custom program that is non-standard?  If it's a standard
program such as
the ssh daemon or the apache webserver, then read my post,
otherwise ignore
what I say here and refer to other people's posts.

Have a look in the directories /etc/rc.d/ and
/usr/local/etc/rc.d/.  Do you
see a script in these directories that may lauch the program
you're
interested in at boot time?  For example, on my system, I
want ssh and
apache running on bootup.  I see the file /etc/rc.d/sshd and
the file
/usr/local/etc/rc.d/apache22.  These are scripts that lauch
the programs.  I
would start sshd manually for example by

  > /etc/rc.d/sshd start

To enable these on bootup automatically, edit your
/etc/rc.conf file.  Mine
has the following lines:

  sshd_enable="YES"
  apache22_enable="YES"

As you can see the lines resemble the script names in the
rc.d directories.
To enable your program at boot time, add a similar line to
rc.conf.

Hope this helps.

-Nerius
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: starting a program at boot time
user name
2008-03-05 13:07:16
> how do i  start a program  at boot time?

I found the following threads helpful:

"script to be executed on system startup"

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=1133336+0+archi
ve/2008/freebsd-questions/20080210.freebsd-questions

"/usr/local/etc/rc.d/ scripts and non-root user"

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=1210729+0+archi
ve/2008/freebsd-questions/20080210.freebsd-questions

Regards,
-- 
Nino
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: starting a program at boot time
country flaguser name
United States
2008-03-11 13:10:17
On Wed, Mar 05, 2008 at 07:24:07PM +0100, Wojciech Puchar
wrote:

> >how do i  start a program  at boot time?
> 
> simplest to add to rc.local
> 
> or as a user - add
> 
> reboot command
> in crontab

Not really.   

The more proper way is to add a startup script in
/usr/local/rc.d/
There are notes and documentation for that and some
samples.

////jerry


> >
> >-- 
> >-----------------------------------------------
> >Bill Banks                         508-829-2005
> >Wachusett Programming              Ourweb
> >http://www.ourweb.net
> >http://www.ourwebtempl
ates.com
> >
> >
> >_______________________________________________
> >freebsd-questionsfreebsd.org mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> >To unsubscribe, send any mail to 
> >"freebsd-questions-unsubscribefreebsd.org"
> >
> >
> _______________________________________________
> freebsd-questionsfreebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: starting a program at boot time
country flaguser name
United States
2008-03-11 13:21:25
In response to Jerry McAllister <jerrymcmsu.edu>:

> On Wed, Mar 05, 2008 at 07:24:07PM +0100, Wojciech
Puchar wrote:
> 
> > >how do i  start a program  at boot time?
> > 
> > simplest to add to rc.local
> > 
> > or as a user - add
> > 
> > reboot command
> > in crontab
> 
> Not really.   
> 
> The more proper way is to add a startup script in
/usr/local/rc.d/

Just for the sanity of the OP: that directory is
/usr/local/etc/rc.d

-- 
Bill Moran
http://www.potentialtech
.com
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: starting a program at boot time
country flaguser name
United States
2008-03-11 14:13:04
On Tue, Mar 11, 2008 at 02:21:25PM -0400, Bill Moran wrote:

> In response to Jerry McAllister <jerrymcmsu.edu>:
> 
> > On Wed, Mar 05, 2008 at 07:24:07PM +0100, Wojciech
Puchar wrote:
> > 
> > > >how do i  start a program  at boot time?
> > > 
> > > simplest to add to rc.local
> > > 
> > > or as a user - add
> > > 
> > > reboot command
> > > in crontab
> > 
> > Not really.   
> > 
> > The more proper way is to add a startup script in
/usr/local/rc.d/
> 
> Just for the sanity of the OP: that directory is
/usr/local/etc/rc.d

Oops.  Sorry, you are right.   I apparently dozed off while
typing it.

        It is:    /usr/local/etc/rc.d  

////jerry

> 
> -- 
> Bill Moran
> http://www.potentialtech
.com
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )