Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Oct 2005 11:47:24 -0400
From:      "Ronny Machado C." <ronny.machado@cajalosandes.cl>
To:        "Erik Norgaard" <norgaard@math.ku.dk>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Procedures
Message-ID:  <CAB4E4DE7BBD8A4CB54A54F27EFABF3F04345F55@YANTELES.ccaf.andes>

next in thread | raw e-mail | index | archive | help
Thanks Erik...very helpful advices...


ronny

-----Mensaje original-----
De: Erik Norgaard [mailto:norgaard@math.ku.dk]
Enviado el: Viernes, 21 de Octubre de 2005 10:23
Para: Ronny Machado C.
CC: freebsd-questions@freebsd.org
Asunto: Re: Procedures


On Fri, 21 Oct 2005, Ronny Machado C. wrote:

> *	How can I get some daemons working at boot time? In Linux you can do =
it via rc.* directories and S* scripts, but in freeBSD I don't know how, =
I've put scripts in rc.d but they don't execute at boot time, Is there a =
way to do it via rc.conf?

Two options: The easy one is to put your script in=20
/usr/local/etc/rc.d, if it's executable and ends in .sh it will be=20
run at startup.

Alternatively try to create your script so it uses /etc/rc.subr -=20
see the other startup scripts for samples - and enable it in=20
/etc/rc.conf

> *	When I do a "ps -fe | grep some-process" I don't get any answer, so =
I can't realise if a process is running, I've got to do a top to get to =
it

I use 'ps -ax'

> *	My sound card is a Sound Blaster Live!, I've tried to load=20
> it by means of kldload emu10k1, it worked but I can't get it to=20
> work. Honestly I haven't configured MYKERNEL since I still don't=20
> understand the process.

No need to build a kernel, just load the right modules. I don't=20
know which is right for your card, but you can try them one by=20
one. They are all named snd_

> *	How can I list the modules in the kernel?

kldstat

> *	I'd like to know if the following messages are due to some=20
> failure or  they are normal, and if the noip problem is produced=20
> by the ppp warnings
> 			Oct 18 12:22:13 nostromo noip2[707]: Can't gethostbyname for =
dynupdate.no-ip.com
> 			Oct 18 12:22:13 nostromo noip2[707]: Can't get our visible IP =
address from dynupdate.no-ip.com
> 			Oct 18 12:23:01 nostromo ppp[217]: tun0: Warning: deflink: Reducing =
configured MRU from 1500 to 1492
> 			Oct 18 12:25:06 nostromo ppp[217]: tun0: Warning: deflink: Reducing =
configured MRU from 1500 to 1492
> 			Oct 18 12:27:11 nostromo ppp[217]: tun0: Warning: deflink: Reducing =
configured MRU from 1500 to 1492


Dunno, I suspect that you can't do name lookups or that no-ip has=20
not registered your host. Maybe it expired becuase your script=20
that updates no-ip didn't run too long?

Cheers, Erik



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB4E4DE7BBD8A4CB54A54F27EFABF3F04345F55>