Re: customizing scripts /etc/init.d

2006-06-26 Thread Dave Kuhlman
On Sun, Jun 25, 2006 at 07:06:31PM -0400, cga2000 wrote:
 On Sun, Jun 25, 2006 at 11:52:15AM EDT, Dave Kuhlman wrote:
  On Sat, Jun 24, 2006 at 02:23:32PM -0400, cga2000 wrote:
   Is there a Debian way to modify startup scripts?  Changes might
   include: deactivating automatic startup of a given daemon.. changing the
   daemon's running options.. adding a new script.. etc.
   
   Additionally, is the debian bootup process documented anywhere?
  
  Take a look here:
  
  http://www.debian.org/doc/manuals/reference/ch-system.en.html#s-boot
 
 Short.. and to the point..! 
 
 In the meantime I briefly reviewed the scripts and all in all I find the
 way it's done in debian a lot clearer than the way it's done in RedHat.
 
 As far as I can tell there is really nothing particular about debian.
 If I need to change anything I should edit the scripts.. rename the
 links in /etc/rc?.d/ .. add my stuff to /etc/init.d/ etc. 
 
 Hopefully my changes won't be overwritten when I upgrade.
 

Well yes, they might be overwritten.  Hopefully, apt-get will warn
you before doing so.  I don't believe I've modified init scripts
on my Ubuntu/Debian systems, so I don't know whether apt-get
upgrade or something similar will over-write them.  But, on my
Gentoo system, I have.  And, they will possibly be replaced,
although Gentoo's package manager (Portage) warned me before doing
so.  In my case, I was able to move my new stuff to a separate
script and then add that new script to the boot process.

I don't know your needs, but if possible, you're best off if you
create a new script of your own, rather than modifying an existing
script, and add your new script to the appropriate run levels.
Debian makes that easy to do.  You probably already found the
following link from the above link, but just in case ...

http://www.debian.org/doc/debian-policy/ch-opersys#s-sysvinit

This link shows how to use update-rc.d to add your new script to
the default run levels.

Dave


-- 
Dave Kuhlman
http://www.rexx.com/~dkuhlman


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problems with PPP on boot

2006-06-26 Thread Dave Kuhlman
On Mon, Jun 26, 2006 at 06:39:25PM +0200, Tomaz Solc wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi everyone
 
 I have a server running Sarge that is connected to the internet through
 PPPoE (I have a DSL line). I'm running several services, including DNS
 (bind 8.4.6-1) and ntpd.
 
 When machine boots, it seems that sometimes daemons will start before
 pppd manages to establish a connection. For some services like Apache
 this presents no problem. But Bind and NTP will not listen for
 connections coming from the internet, because the ppp0 network device
 didn't exist when they were starting. This is quite a problem, because
 the machine is crippled after a reboot until I manually restart Bind and
 NTP.
 
 I have my PPP connection configured in /etc/network/interfaces like this:
 
 auto ppp0
 iface ppp0 inet ppp
 pre-up ifconfig eth1 up
 post-up waitfor ppp0 30
 post-down ifconfig eth1 down
 provider dsl-provider-2.4
 
 waitfor is a script that waits for ppp0 device to become available.
 This was one of my failed attempts to try to halt the boot process until
 the internet connection is established.
 

My understanding is that the init scripts (in /etc/init.d/) are
run in sequence and that the two-digit number in the names of
the symbolic links in /etc/rc1.d/, /etc/rc2.d/, etc determines the
order in which the scripts in /etc/init.d/ are run.  For example,
S13gdm would be started before S14ppp.

Take a look at these:

http://www.debian.org/doc/manuals/reference/ch-system.en.html#s-boot
http://www.debian.org/doc/debian-policy/ch-opersys#s-sysvinit
http://www.debian.org/doc/debian-policy/ch-opersys#s-/etc/init.d

And, by the way, using Debian tools such as update-rc.d will help
you manage those symbolic links.

I use RoaringPenguin PPPoE, so I have my own init script (one I
wrote; OK, I copied another script in /etc/init./ and made minor
modifications), which brings up the PPPoE link and starts my
firewall script.

In your case, is Bind being started by an init script in
/etc/init.d/?  If so, perhaps you could add a new init script that
brings up the PPPoE connection.  Then, using update-rc.d, add the
symbolic links to your script with a number that causes your PPPoE
init script to be run before the Bind init script and any others
that require the PPPoE link.

Did I understand your problem correctly?

Dave

[snip]

-- 
Dave Kuhlman
http://www.rexx.com/~dkuhlman


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: customizing scripts /etc/init.d

2006-06-25 Thread Dave Kuhlman
On Sat, Jun 24, 2006 at 02:23:32PM -0400, cga2000 wrote:
 Is there a Debian way to modify startup scripts?  Changes might
 include: deactivating automatic startup of a given daemon.. changing the
 daemon's running options.. adding a new script.. etc.
 
 Additionally, is the debian bootup process documented anywhere?

Take a look here:

http://www.debian.org/doc/manuals/reference/ch-system.en.html#s-boot

Dave

-- 
Dave Kuhlman
http://www.rexx.com/~dkuhlman


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Re: Repost-No Response-Fwd: Another APT Issue-Where Are The Linux-Images

2006-06-18 Thread Dave Kuhlman
On Sat, Jun 17, 2006 at 05:22:56PM -0500, Leonard Chatagnier wrote:
 Allen wrote:
 Why do you care what is in the cache file?  If you have apt-cache
 installed, then you use `apt-cache search $package` to find
 $package_regex, and if you use aptitude, you can do this to download but
 install it: `aptitide -d install $package_name` (latter need to be as
 root).
 
 Not totally sure what your point is. I have many times did apt-get, aptitude
 and wajig updates, upgrades, dist-upgrades, installs, removes and purges. 
 I'm certainly no Debian linux expert, if anyone is. I don't know what 
 regex is
 unless it means regular expresson. apt-cache search didn't find it. You may 
 be
 telling me that I can download and install a package with aptitude -d 
 install


 ... but I don't know what that Package Name is unless I see it 
 in 
 a cache file or somewheres. I'm willing to be enlightened as after 2 yrs 
 with
 Debian linux I'm just beginning to know that I don't know anything about it.
 So go ahead fire away and enlighten me. I usually learn something everytime 
 I
 post or read the list.

Other responses in this thread give good suggestions for searching
for packages.  But, suppose your question is something like: What
package contains file or application xyz?  In effect, you are
saying: I need file/app xyz? What package do I need to install in
order to get it?  If that is your question, then here is one thing
you might try.  Go to:

http://www.debian.org/distrib/packages

and click on Search the contents of packages, then search for
that file by name.

Dave

-- 
Dave Kuhlman
http://www.rexx.com/~dkuhlman


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]