What is a good method to start restarting apache after installing .deb?

I have several custom .debs that I created. All of them depend on apache and after updating any apache package you need to restart.

Restarting apache is naive from postinst. I get a reboot for every package I update, which is very slow. Does anyone know if there is a good way to avoid this? Dpkg triggers seem to be the right approach, but I can't find a lot of documentation information. Apache defines its own trigger for activation. If so, what should I call it?

+3
source share
1 answer

, dpkg . , , -.

:

  • - , apache- debs . "apache-coordination".
  • apache-coord DEBIAN/triggers interest apache-coordination-reload.
  • apache-coordation postinst , "triggered" "apache-coordination-reload" - , apache ( invoke-rc.d - , ).
  • apache-coordination-reload, . , DEBIAN/triggers , activate apache-coordination-reload.
+1

All Articles