| From | Sent On | Attachments |
|---|---|---|
| navneet Upadhyay | Feb 6, 2008 6:09 am | |
| Pietro Cerutti | Feb 6, 2008 6:22 am | |
| Derek Ragona | Feb 6, 2008 6:22 am | |
| Wojciech Puchar | Feb 6, 2008 6:31 am | |
| navneet Upadhyay | Feb 6, 2008 6:33 am | |
| Derek Ragona | Feb 6, 2008 6:44 am | |
| Ivan Voras | Feb 6, 2008 6:53 am | |
| Ivan Voras | Feb 6, 2008 6:59 am | |
| Wojciech Puchar | Feb 6, 2008 7:35 am | |
| Zbigniew Szalbot | Feb 6, 2008 7:39 am | |
| Jerry McAllister | Feb 6, 2008 7:40 am | |
| Jerry McAllister | Feb 6, 2008 7:46 am | |
| Jerry McAllister | Feb 6, 2008 7:52 am | |
| Zbigniew Szalbot | Feb 6, 2008 7:54 am | |
| Wojciech Puchar | Feb 6, 2008 8:49 am | |
| Zbigniew Szalbot | Feb 6, 2008 8:51 am | |
| Alex Zbyslaw | Feb 6, 2008 9:22 am | |
| Jerry McAllister | Feb 6, 2008 9:29 am | |
| Paul Schmehl | Feb 6, 2008 9:35 am | |
| Ivan Voras | Feb 6, 2008 9:52 am | |
| Dominic Fandrey | Feb 6, 2008 10:50 am | |
| RW | Feb 6, 2008 10:56 am | |
| RW | Feb 6, 2008 11:03 am | |
| Ivan Voras | Feb 7, 2008 2:16 am | |
| navneet Upadhyay | Feb 7, 2008 5:49 am | |
| RW | Feb 9, 2008 10:10 am | |
| Matthew Seaman | Feb 9, 2008 10:22 am | |
| Dominic Fandrey | Feb 9, 2008 11:02 am | |
| RW | Feb 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.





