[pve-devel] r6196 - in pve-manager/pve2: . debian

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Jun 29 08:57:41 CEST 2011


Author: dietmar
Date: 2011-06-29 08:57:41 +0200 (Wed, 29 Jun 2011)
New Revision: 6196

Added:
   pve-manager/pve2/debian/triggers
Modified:
   pve-manager/pve2/ChangeLog
   pve-manager/pve2/Makefile.am
   pve-manager/pve2/debian/postinst
Log:
add dpkg-trigger support 


Modified: pve-manager/pve2/ChangeLog
===================================================================
--- pve-manager/pve2/ChangeLog	2011-06-29 05:16:52 UTC (rev 6195)
+++ pve-manager/pve2/ChangeLog	2011-06-29 06:57:41 UTC (rev 6196)
@@ -1,3 +1,8 @@
+2011-06-29  Proxmox Support Team  <support at proxmox.com>
+
+	* debian/postinst: add dpkg-trigger support (restart daemons when
+	used libraries changes)
+
 2011-06-22  Proxmox Support Team  <support at proxmox.com>
 
 	* bin/init.d/pvenetcommit: start before network

Modified: pve-manager/pve2/Makefile.am
===================================================================
--- pve-manager/pve2/Makefile.am	2011-06-29 05:16:52 UTC (rev 6195)
+++ pve-manager/pve2/Makefile.am	2011-06-29 06:57:41 UTC (rev 6196)
@@ -34,6 +34,7 @@
 	install -m 0755 debian/postinst dest/DEBIAN
 	install -m 0755 debian/prerm dest/DEBIAN
 	install -m 0755 debian/postrm dest/DEBIAN
+	install -m 0755 debian/triggers dest/DEBIAN
 	gzip --best dest/usr/share/man/*/*
 	gzip --best dest/usr/share/doc/${PACKAGE}/changelog.Debian
 	dpkg-deb --build dest

Modified: pve-manager/pve2/debian/postinst
===================================================================
--- pve-manager/pve2/debian/postinst	2011-06-29 05:16:52 UTC (rev 6195)
+++ pve-manager/pve2/debian/postinst	2011-06-29 06:57:41 UTC (rev 6196)
@@ -17,6 +17,16 @@
 db_stop
 
 case "$1" in
+  triggered)
+    # We don't print a status message here, as dpkg already said
+    # "Processing triggers for ...".
+
+    test -e /proxmox_install_mode || invoke-rc.d pvedaemon restart
+    test -e /proxmox_install_mode || invoke-rc.d pvestatd restart    
+    test -e /proxmox_install_mode || invoke-rc.d apache2 restart
+
+    exit 0;;
+
   configure)
     # Configure this package.  If the package must prompt the user for
     # information, do it here.

Added: pve-manager/pve2/debian/triggers
===================================================================
--- pve-manager/pve2/debian/triggers	                        (rev 0)
+++ pve-manager/pve2/debian/triggers	2011-06-29 06:57:41 UTC (rev 6196)
@@ -0,0 +1 @@
+interest /usr/share/perl5



More information about the pve-devel mailing list