| 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: | Jerry McAllister (jerr...@msu.edu) | |
| Date: | Feb 6, 2008 7:46:22 am | |
| List: | org.freebsd.freebsd-questions | |
On Wed, Feb 06, 2008 at 03:29:14PM +0100, Wojciech Puchar wrote:
I have a script file, i want that script to be executed on system startup.
I am doing this on Linux in following two steps : -
1. Copying the script to /etc/rc.d directory. 2. /sbin/chkconfig --add "scriptname"
I want to achieve the same on FreeBSD
chckconfig file is not present, documentation says i have to add it to rc.conf file.
you have to
1) make your own service started in /etc/rc.d (look at others for example)
2) simply add what's needed to rc.local
No, don't add anything to rc.local.
Putting the script in /usr/local/etc/rc.d and making it executable is all you want to do.
In the script it should check for being passed a 'start' or a 'stop'. If you want to pass it other information or conditions, you may also want to make it to check for an environment variable which you can set in rc.conf and have your script read up (source) rc.conf.
////jerry
_______________________________________________ free...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "free...@freebsd.org"





