Re: [apt] Sets of packages that run the same command.
On Fri, 17 Dec 1999, Joey Hess wrote:
> Jason Gunthorpe wrote:
> > I think a much simpler solution would be to simply have a directory, say,
> > /var/lib/dpkg/configure that dpkg will run the entire contents of after it
> > is finished configuring things.
> How does this let several programs drop in scripts saying update-menus or
> ldconfig should be run, and only have the command be run once?
The programs mutually agree on the command/script to run and do
ln -sf `which ldconfig` /var/lib/dpkg/configure/ldconfig
Each time they want to queue something up. Could even drop the -f if that
makes you queasy.