From 004dc4cd3ec6369c539b0396e95826b4e6c1fe5b Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 30 Aug 2011 15:17:23 +0200 Subject: [PATCH] Fix startup order Also depend on redhat-cluster-pve --- bin/init.d/pvedaemon | 6 ++++-- bin/init.d/pvestatd | 4 ++-- debian/control.in | 2 +- debian/postinst | 8 ++++---- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/bin/init.d/pvedaemon b/bin/init.d/pvedaemon index 68cf06de..dace923f 100755 --- a/bin/init.d/pvedaemon +++ b/bin/init.d/pvedaemon @@ -2,8 +2,10 @@ ### BEGIN INIT INFO # Provides: pvedaemon -# Required-Start: $remote_fs $network $syslog pve-cluster -# Required-Stop: $remote_fs $network $syslog pve-cluster +# Required-Start: $remote_fs $network $syslog pve-cluster cman +# Required-Stop: $remote_fs $network $syslog pve-cluster cman +# X-Start-Before: apache2 +# X-Stop-After: apache2 # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: PVE Daemon diff --git a/bin/init.d/pvestatd b/bin/init.d/pvestatd index afe3e926..481654a0 100755 --- a/bin/init.d/pvestatd +++ b/bin/init.d/pvestatd @@ -2,8 +2,8 @@ ### BEGIN INIT INFO # Provides: pvestatd -# Required-Start: $remote_fs $network $syslog pve-cluster pvedaemon -# Required-Stop: $remote_fs $network $syslog pve-cluster pvedaemon +# Required-Start: $remote_fs $network $syslog pve-cluster pvedaemon cman +# Required-Stop: $remote_fs $network $syslog pve-cluster pvedaemon cman # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: PVE Status Daemon diff --git a/debian/control.in b/debian/control.in index a48d0921..4ae2f0b3 100644 --- a/debian/control.in +++ b/debian/control.in @@ -3,7 +3,7 @@ Version: @VERSION@-@PACKAGERELEASE@ Section: admin Priority: optional Architecture: all -Depends: perl5, libtimedate-perl, apache2-mpm-prefork, libauthen-pam-perl, libintl-perl, rsync, libapache2-request-perl, libjson-perl, libdigest-sha1-perl, vncterm, qemu-server (>= 1.1-1), libwww-perl, wget, libnet-dns-perl, vlan, ifenslave-2.6 (>= 1.1.0-10), liblinux-inotify2-perl, debconf (>= 0.5) | debconf-2.0, netcat-traditional, pve-cluster, libpve-common-perl, libpve-storage-perl, libterm-readline-gnu-perl, libpve-access-control, libio-socket-ssl-perl, libfilesys-df-perl, libfile-readbackwards-perl, libfile-sync-perl +Depends: perl5, libtimedate-perl, apache2-mpm-prefork, libauthen-pam-perl, libintl-perl, rsync, libapache2-request-perl, libjson-perl, libdigest-sha1-perl, vncterm, qemu-server (>= 1.1-1), libwww-perl, wget, libnet-dns-perl, vlan, ifenslave-2.6 (>= 1.1.0-10), liblinux-inotify2-perl, debconf (>= 0.5) | debconf-2.0, netcat-traditional, pve-cluster, libpve-common-perl, libpve-storage-perl, libterm-readline-gnu-perl, libpve-access-control, libio-socket-ssl-perl, libfilesys-df-perl, libfile-readbackwards-perl, libfile-sync-perl, redhat-cluster-pve Conflicts: netcat-openbsd Maintainer: Proxmox Support Team Description: The Proxmox Virtual Environment diff --git a/debian/postinst b/debian/postinst index b0b95f6f..f884ae49 100755 --- a/debian/postinst +++ b/debian/postinst @@ -35,10 +35,10 @@ case "$1" in test -e /var/lib/pve-manager/apl-available || cp /usr/share/doc/pve-manager/aplinfo.dat /var/lib/pve-manager/apl-available - update-rc.d pvedaemon defaults 21 >/dev/null 2>&1 - update-rc.d pvestatd defaults 21 >/dev/null 2>&1 - update-rc.d pvebanner defaults 99 >/dev/null 2>&1 - update-rc.d pvenetcommit start 15 S . >/dev/null 2>&1 + update-rc.d pvedaemon defaults 21 79 >/dev/null + update-rc.d pvestatd defaults 21 79 >/dev/null + update-rc.d pvebanner start 99 2 3 4 5 >/dev/null + update-rc.d pvenetcommit start 15 S . >/dev/null # make sure we have a crontab for vzdump touch /etc/cron.d/vzdump