Re: script to be executed on system startup.

2008-02-09 Thread RW
On Sat, 09 Feb 2008 18:22:39 + Matthew Seaman <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > RW wrote: > > On Thu, 7 Feb 2008 19:19:48 +0530 > > "navneet Upadhyay" <[EMAIL PROTECTED]> wrote: > > > >> Hi, > >> After putting my script to /etc/rc.d , it

Re: script to be executed on system startup.

2008-02-09 Thread Dominic Fandrey
Matthew Seaman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 RW wrote: On Thu, 7 Feb 2008 19:19:48 +0530 "navneet Upadhyay" <[EMAIL PROTECTED]> wrote: Hi, After putting my script to /etc/rc.d , it gets executed at startup and the parameter passed to the script is *faststart .*

Re: script to be executed on system startup.

2008-02-09 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 RW wrote: > On Thu, 7 Feb 2008 19:19:48 +0530 > "navneet Upadhyay" <[EMAIL PROTECTED]> wrote: > >> Hi, >> After putting my script to /etc/rc.d , it gets executed at >> startup and the parameter passed to the script is *faststart .* >> *I want

Re: script to be executed on system startup.

2008-02-09 Thread RW
On Thu, 7 Feb 2008 19:19:48 +0530 "navneet Upadhyay" <[EMAIL PROTECTED]> wrote: > Hi, > After putting my script to /etc/rc.d , it gets executed at > startup and the parameter passed to the script is *faststart .* > *I want the same script to be executed when system shuts down , how > can i d

Re: script to be executed on system startup.

2008-02-07 Thread navneet Upadhyay
Hi, After putting my script to /etc/rc.d , it gets executed at startup and the parameter passed to the script is *faststart .* *I want the same script to be executed when system shuts down , how can i do that.* ** *i want to do something like this in script :- * ** *if [$1 = "faststart"]; the

Re: script to be executed on system startup.

2008-02-07 Thread Ivan Voras
RW wrote: > On Wed, 06 Feb 2008 15:55:12 +0100 > Ivan Voras <[EMAIL PROTECTED]> 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

Re: script to be executed on system startup.

2008-02-06 Thread RW
On Wed, 06 Feb 2008 15:55:12 +0100 Ivan Voras <[EMAIL PROTECTED]> 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 > s

Re: script to be executed on system startup.

2008-02-06 Thread RW
On Wed, 6 Feb 2008 18:52:26 +0100 "Ivan Voras" <[EMAIL PROTECTED]> wrote: > On 06/02/2008, Wojciech Puchar <[EMAIL PROTECTED]> wrote: > > > (for example: "/etc/rc.d/myscript") > > > 2. chmod a+x the script > > > 3. you're done. > > > > > > This will work for the recent versions of FreeBSD (you did

Re: script to be executed on system startup.

2008-02-06 Thread Dominic Fandrey
navneet Upadhyay wrote: Hi, 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 chckconf

Re: script to be executed on system startup.

2008-02-06 Thread Ivan Voras
On 06/02/2008, Wojciech Puchar <[EMAIL PROTECTED]> wrote: > > (for example: "/etc/rc.d/myscript") > > 2. chmod a+x the script > > 3. you're done. > > > > This will work for the recent versions of FreeBSD (you didn't say for > > which version do you need it). > > you need to make that script react f

Re: script to be executed on system startup.

2008-02-06 Thread Paul Schmehl
--On Wednesday, February 06, 2008 17:46:40 +0100 Wojciech Puchar <[EMAIL PROTECTED]> wrote: No, don't add anything to rc.local. no because of? Because rc.local is the legacy, deprecated method of handling local scripts, per man (8) rc. "Typically, the /usr/local/etc/rc.d/ mechanism is

Re: script to be executed on system startup.

2008-02-06 Thread Jerry McAllister
On Wed, Feb 06, 2008 at 05:46:40PM +0100, Wojciech Puchar wrote: > > > >No, don't add anything to rc.local. > > no because of? > Quote from man rc Typically, the /usr/local/etc/rc.d/ mechanism is used instead of rc.local these days but if you want to u

Re: script to be executed on system startup.

2008-02-06 Thread Alex Zbyslaw
Wojciech Puchar wrote: No, don't add anything to rc.local. no because of? The manual page. The rc.local script contains com- mands which are pertinent only to a specific site. Typically, the /usr/local/etc/rc.d/ mechanism is used instead of rc.local these days but i

Re: script to be executed on system startup.

2008-02-06 Thread Zbigniew Szalbot
2008/2/6, Wojciech Puchar <[EMAIL PROTECTED]>: > > > > No, don't add anything to rc.local. > > no because of? because usrland should be executed from /usr/local/etc/rc.d/ as far as I know. ZS ___ freebsd-questions@freebsd.org mailing list http://lists.f

Re: script to be executed on system startup.

2008-02-06 Thread Wojciech Puchar
No, don't add anything to rc.local. no because of? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: script to be executed on system startup.

2008-02-06 Thread Zbigniew Szalbot
Hello, 2008/2/6, Jerry McAllister <[EMAIL PROTECTED]>: > On Wed, Feb 06, 2008 at 04:39:40PM +0100, Zbigniew Szalbot wrote: > > > Hello, > > > > 2008/2/6, Wojciech Puchar <[EMAIL PROTECTED]>: > > > > (for example: "/etc/rc.d/myscript") > > > > 2. chmod a+x the script > > > > 3. you're done. > > > >

Re: script to be executed on system startup.

2008-02-06 Thread Jerry McAllister
On Wed, Feb 06, 2008 at 04:39:40PM +0100, Zbigniew Szalbot wrote: > Hello, > > 2008/2/6, Wojciech Puchar <[EMAIL PROTECTED]>: > > > (for example: "/etc/rc.d/myscript") > > > 2. chmod a+x the script > > > 3. you're done. > > > > > > This will work for the recent versions of FreeBSD (you didn't say

Re: script to be executed on system startup.

2008-02-06 Thread Jerry McAllister
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 "script

Re: script to be executed on system startup.

2008-02-06 Thread Jerry McAllister
On Wed, Feb 06, 2008 at 03:22:26PM +0100, Pietro Cerutti wrote: > navneet Upadhyay wrote: > > Hi, > > Hello, > > > 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

Re: script to be executed on system startup.

2008-02-06 Thread Zbigniew Szalbot
Hello, 2008/2/6, Wojciech Puchar <[EMAIL PROTECTED]>: > > (for example: "/etc/rc.d/myscript") > > 2. chmod a+x the script > > 3. you're done. > > > > This will work for the recent versions of FreeBSD (you didn't say for > > which version do you need it). > > you need to make that script react for

Re: script to be executed on system startup.

2008-02-06 Thread Wojciech Puchar
(for example: "/etc/rc.d/myscript") 2. chmod a+x the script 3. you're done. This will work for the recent versions of FreeBSD (you didn't say for which version do you need it). you need to make that script react for "start" and "stop" commands at least

Re: script to be executed on system startup.

2008-02-06 Thread Ivan Voras
Ivan Voras wrote: > An advanced feature ... I'd like to add some more info on the subject: the rc.d script mechanism is extremely powerful and you can do many things with it, if you need them. Scripts are passed arguments like "start" and "stop" which you might want to handle (though "stop" is ha

Re: script to be executed on system startup.

2008-02-06 Thread Ivan Voras
navneet Upadhyay wrote: > Hi, > 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

Re: script to be executed on system startup.

2008-02-06 Thread Derek Ragona
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

Re: script to be executed on system startup.

2008-02-06 Thread navneet Upadhyay
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

Re: script to be executed on system startup.

2008-02-06 Thread Wojciech Puchar
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, documen

Re: script to be executed on system startup.

2008-02-06 Thread Derek Ragona
At 08:09 AM 2/6/2008, navneet Upadhyay wrote: Hi, 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 sam

Re: script to be executed on system startup.

2008-02-06 Thread Pietro Cerutti
navneet Upadhyay wrote: > Hi, Hello, > 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