[asterisk-users] make config update-rc.d on Debian

Philipp Kempgen philipp.kempgen at amooma.de
Mon Oct 27 11:16:39 CDT 2008


This was an old thread
http://lists.digium.com/pipermail/asterisk-users/2007-November/200539.html
so I'm starting a new one.

Tzafrir Cohen wrote:
> On Thu, Nov 15, 2007 at 06:47:04PM +0100, Philipp Kempgen wrote:
>> On Debian the Asterisk Makefile does
>> 
>> /usr/sbin/update-rc.d asterisk start 10 2 3 4 5 . stop 91 2 3 4 5 .;
>> 
>> which results in a /etc/rc2.d/S10asterisk being written.
>> 
>> I think S10 is too early.

Tilghman Lesher changed it to
	update-rc.d asterisk start 50 2 3 4 5 . stop 91 2 3 4 5 .
in 1.4 rev. 89302 (1.6.0, 1.6.1 and trunk rev. 89304)
as per my suggestion (thanks!) but I missed a part of the problem:

> And it would also be simpler to use:
> 
>   update-rc.d asterisk defaults 10 91
> 
> Or, for better numbers:
> 
>   update-rc.d asterisk defaults 30 15
> 
> Note that on Debian the K scripts are in runlevels 0, 1 and 6.

Tzafrir is right. No K scripts in 0,1,6 => Asterisk is not being
stopped on shutdown at all, thus unloading Zaptel fails
("Unloading zaptel hardware drivers:ERROR: Module zaptel is in use").

The correct thing to do (I guess) would be:
	/usr/sbin/update-rc.d asterisk defaults 50 15
(Tzafrir?)

Side note: To fix your existing installation run:
	update-rc.d -f asterisk remove
	update-rc.d asterisk defaults 50 15


   Philipp Kempgen

-- 
http://www.das-asterisk-buch.de  -  http://www.the-asterisk-book.com
Amooma GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
-- 



More information about the asterisk-users mailing list