Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: asterisk: cyclic-deps, gtk, docs: msg#00276

Subject: Re: asterisk: cyclic-deps, gtk, docs
On Sat, 19 Aug 2006 18:20:36 +0300 Tzafrir Cohen wrote:

> On Thu, Aug 17, 2006 at 11:59:17PM +0200, Jonas Smedegaard wrote:
> > On Thu, 17 Aug 2006 21:42:33 +0100 Mark Purcell wrote:
> > 
> > > Init.d will fail if the asterisk daemon isn't present.
> > > 
> > > But the default install doesn't start asterisk on load, 
> 
> Which is something I want to change anyway.

Great!


> > > until
> > > default/asterisk is modified anyway..
> 
> One way out of it is not to put /etc/default/asterisk in the package.
> The way it is now, every upgrade of asterisk updates that file. That
> file can have nothing by default. 

That file is (and must be) a conffile. As such, you are incorrect:

The file is only updated if accepted by the local admin. And requests
for updates are only done each time the content of the packaged file
changes between installed and to-be-installed package.


If we want to change the default of the package from not starting the
daemon to starting it, then the correct approach is to simply change
the packaged file.

That way users updating the package are made aware of the change.

That's the point of conffiles - don't try to defeat that :-)


> > Not good enough: removing (but not purging) an earlier asterisk
> > leaves a (possibly enabled!) default/asterisk that then may cause
> > trouble on install, as you cannot be sure of the order of install
> > of packages.
> > 
> > Package asterisk can then instead predepend on one of the packages
> > containing the binary, but predepends should generally be avoided.
> > 
> > 
> 
> If the package that contains /usr/sbin/asterisk is not at least
> unpacked when the package that contains /etc/init.d/asterisk is
> configured, asterisk will fail to start.

Correct. That's another uglines of this.

The maintainer of dovecot solved similar issues among the binary
packages dovecot-imapd, dovecot-pop3d and dovecot-common.

 * dovecot-common provides sysV script

 * SysV "start" action fails silently if binary does not exist

 * SysV "start" action uses treats already running as no error


That last one bit me today: Some package other than asterisk itself is
updated in same batch as asterisk, restarts the daemon, and when
asterisk later attempts to start it again after updating, it fails,
telling to use restart instead.


 - Jonas

-- 
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er nær: http://www.shibumi.org/eoti.htm

Attachment: pgpUvgWzN0Wva.pgp
Description: PGP signature

_______________________________________________
Pkg-voip-maintainers mailing list
Pkg-voip-maintainers@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.alioth.debian.org/mailman/listinfo/pkg-voip-maintainers
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe