atom feed29 messages in org.freebsd.freebsd-questionsscript to be executed on system startup.
FromSent OnAttachments
navneet UpadhyayFeb 6, 2008 6:09 am 
Pietro CeruttiFeb 6, 2008 6:22 am 
Derek RagonaFeb 6, 2008 6:22 am 
Wojciech PucharFeb 6, 2008 6:31 am 
navneet UpadhyayFeb 6, 2008 6:33 am 
Derek RagonaFeb 6, 2008 6:44 am 
Ivan VorasFeb 6, 2008 6:53 am 
Ivan VorasFeb 6, 2008 6:59 am 
Wojciech PucharFeb 6, 2008 7:35 am 
Zbigniew SzalbotFeb 6, 2008 7:39 am 
Jerry McAllisterFeb 6, 2008 7:40 am 
Jerry McAllisterFeb 6, 2008 7:46 am 
Jerry McAllisterFeb 6, 2008 7:52 am 
Zbigniew SzalbotFeb 6, 2008 7:54 am 
Wojciech PucharFeb 6, 2008 8:49 am 
Zbigniew SzalbotFeb 6, 2008 8:51 am 
Alex ZbyslawFeb 6, 2008 9:22 am 
Jerry McAllisterFeb 6, 2008 9:29 am 
Paul SchmehlFeb 6, 2008 9:35 am 
Ivan VorasFeb 6, 2008 9:52 am 
Dominic FandreyFeb 6, 2008 10:50 am 
RWFeb 6, 2008 10:56 am 
RWFeb 6, 2008 11:03 am 
Ivan VorasFeb 7, 2008 2:16 am 
navneet UpadhyayFeb 7, 2008 5:49 am 
RWFeb 9, 2008 10:10 am 
Matthew SeamanFeb 9, 2008 10:22 am 
Dominic FandreyFeb 9, 2008 11:02 am 
RWFeb 9, 2008 7:03 pm 
Subject:script to be executed on system startup.
From:RW (fbs@mlists.homeunix.com)
Date:Feb 6, 2008 11:03:24 am
List:org.freebsd.freebsd-questions

On Wed, 06 Feb 2008 15:55:12 +0100 Ivan Voras <ivo@freebsd.org> wrote:

I've seen some complicated examples on this thread, and want to suggest a simple one:

1. create a regular shell script in /etc/rc.d, n .. A more semantically pure example (and the one that's preferred if your script starts an external application - a web server or something like that) is to put the script in /usr/local/etc/rc.d. In any case, the syntax and everything else is the same.

This is a bit muddled.

/etc/rc.d is for system RCNG scripts.

/usr/local/etc/rc.d is for local RCNG scripts and legacy scripts that simply respond to stop/start in $1. Legacy scripts end in .sh and are called from /etc/rc.d/localpkg in dictionary order.

Since the OP appears to have such a script it should be given a ".sh" extension and placed in /usr/local/etc/rc.d, not in /etc/rc.d.