You are not logged in.

#1 2006-04-10 12:30:26

riwa
Member
From: Lund, Sweden
Registered: 2006-04-04
Posts: 215

Is rc.conf a "regular" script?

My question is if I can launch a program form there? I use "no-ip" because my ip changes every time I boot. I would like to not have to run the program every time I boot nor to put it in my .bashrc script. Or should I put it in /etc/profile?

/Richard


If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.

Offline

#2 2006-04-10 12:41:53

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Is rc.conf a "regular" script?

Sounds like you should make a startup script for /etc/rc.d and then just add it to the daemons array.

Offline

#3 2006-04-10 12:45:00

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Is rc.conf a "regular" script?

or just put it in /etc/rc.local.

putting it in rc.conf is a really really bad idea, because it's loaded many many many times on boot. once for each daemon, it's also loaded in rc.sysinit. on the average system, that's at least 10 times.

then it's loaded for each daemon on shutdown, so that's another 8 or so.

James

Offline

#4 2006-04-10 13:07:42

riwa
Member
From: Lund, Sweden
Registered: 2006-04-04
Posts: 215

Re: Is rc.conf a "regular" script?

My rc.local is empty. Should I just add a: exec no-ip to that file then?


If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.

Offline

#5 2006-04-10 15:26:56

Michiel
Member
From: Westkapelle, Zeeland, NL
Registered: 2005-02-13
Posts: 34
Website

Re: Is rc.conf a "regular" script?

Yes, you could do that

Or add /path/to/no-ip


All you got to do, is tell the story right...

Offline

#6 2006-04-11 06:17:09

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Is rc.conf a "regular" script?

there's no need for exec, just do as michiel said.

rc.local is a regular script, run at the end of the bootup sequence.

James

Offline

Board footer

Powered by FluxBB