LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Back to basics - rc.local

[ILUG] Back to basics - rc.local

Niall O Broin niall at linux.ie
Wed Jan 23 13:25:32 GMT 2002


On Wed, Jan 23, 2002 at 12:11:52PM +0000, Waider wrote:
> According to Declan Grady:
> > . ifup ippp0
> > . ndc start
> > . /usr/local/squid/bin/squid
> 
> 1. Those dots are there why?

I didn't notice those dots in the first post - blame my molars :-( Of course
they're the source of the grief and I presume they're there because somebody
copied something else with being too sure what he was doing (I tried really
hard to be nice :-) ) The line 

. ifup ippp0

in a shell script tells the shell which is processing the script to find the
file ifup (looks along $PATH which I find odd, but that's the behaviour) and
attempts to run the commands contained in it as shell commands so if ifup
isn't on that shell's path, or is not a script (I presume it is), it won't
be sourced. The ndc and squid lines (presuming we are talking about BIND's
ndc) definitely won't work because these are ELF executables and not shell
scripts. Replace the three offending lines with

/path/to/ifup ippp0
/path/to/ndc start
/usr/local/squid/bin/squid

and you should be sorted.

However, I'd further ask what distro you're using - any current distro
should have a full set of start/stop scripts for these three things. 




Niall




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell