| 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: | Derek Ragona (der...@computinginnovations.com) | |
| Date: | Feb 6, 2008 6:44:48 am | |
| List: | org.freebsd.freebsd-questions | |
At 08:33 AM 2/6/2008, navneet Upadhyay wrote:
i dont want to go with the rename option, as if tomorrow i want to add more scripts to run at startup i will be in a mess.
I will tell in detail so that it would be easy for you to understand my problem :-
Intention is that the script file should be called at both startup and shutdown.
In Linux after doing :- 1. Copying the script to /etc/rc.d directory. 2. /sbin/chkconfig --add "scriptname"
While startup scriptfile is called with parameter start and while shutdown it is called with parameter stop.
So i check the parameter value in the script and if it is start , i run my executables and if it is stop i gracefully exit from my executables.
I want to achie same thing in FreeBSD.
Thanks, Navneet
All scripts in /usr/local/etc/rc.d are sent the "start" parameter at bootup and the "stop" parameter at shutdown. So this is exactly what you are looking for. If your script isn't running correctly check the paths to the executables, and also put some echo statements in the script to follow the logic to debug it.
-Derek
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.





