On Sat, Feb 21, 2009 at 10:20:40PM +0900, Junichi Uekawa wrote: > By the way, why are you starting > /usr/sbin/update-apt-xapian-index --quiet & > in postinst? > I think there should be a > /etc/init.d/apt-xapian-index > which does a daemon control of update-apt-xapian-index (doing pid file > etc.) which is invoked from crontab and postinst, and start it > through invoke-rc.d so they can be controlled via policy.
apt-xapian-index isn't really a daemon: it rebuilds the index and exits. While it's building the index, besides having a lockfile, it also listens on a unix domain socket so that if it's run again, the second copy can just show the progress of the first one. This allows a package manager to report progress even if an indexer is still running in the background. Ciao, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <enr...@debian.org>
signature.asc
Description: Digital signature