[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Setting up <package> vs triggers



=============== BEFORE =============

$ sudo apt-get install dbus
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  dbus-x11
The following NEW packages will be installed:
  dbus
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/378 kB of archives.
After this operation, 796 kB of additional disk space will be used.
Selecting previously unselected package dbus.
(Reading database ... 73608 files and directories currently installed.)
Unpacking dbus (from .../dbus_1.6.2-2+dyson1_illumos-amd64.deb) ...
Processing triggers for manifest-import ...
svccfg: Loaded 1 smf(5) service descriptions
Processing triggers for man-db ...
Setting up dbus (1.6.2-2+dyson1) ...


DBUS service faled to start:
maintenance    17:24:17 svc:/system/dbus:default

Because it is started just after manifest import, before dbus is configured
(/etc/dbus-1/system.conf does not exist I guess)


============== AFTER ==========
after adding /etc/apt/apt.conf.d/triggers [1]:
DPkg::NoTriggers "true";
PackageManager::Configure "smart";
DPkg::ConfigurePending "true";
DPkg::TriggersPending "true";

$ sudo apt-get install dbus
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  dbus-x11
The following NEW packages will be installed:
  dbus
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/378 kB of archives.
After this operation, 796 kB of additional disk space will be used.
Selecting previously unselected package dbus.
(Reading database ... 73608 files and directories currently installed.)
Unpacking dbus (from .../dbus_1.6.2-2+dyson1_illumos-amd64.deb) ...
Processing triggers for man-db ...
Setting up dbus (1.6.2-2+dyson1) ...
Processing triggers for manifest-import ...
svccfg: Loaded 1 smf(5) service descriptions


manifest-import is triggerred after dbus is configured, and dbus
service succesfully starts


Could anyone explain what is going on? :-)
Why man-db is still triggerred before configureing dbus?

[1] http://raphaelhertzog.com/2011/05/30/trying-to-make-dpkg-triggers-more-useful-and-less-painful/


Reply to: