5
0
mirror of git://git.proxmox.com/git/pve-ha-manager.git synced 2025-02-08 09:57:29 +03:00

30 Commits

Author SHA1 Message Date
Wolfgang Bumiller
ecc145c972 Fix postinstall script not removing watchdog-mux.socket
watchdog-mux.socket was removed in f8a3fc80af but the
postinstall script used -e instead of -L to test for the
symlink, which fails since the destination is already
removed at that point.

Use -L and remove the dead symlink if it exists.

Reported-by: Alexandre Derumier <aderumier@odiso.com>
2016-02-04 18:23:19 +01:00
Dietmar Maurer
9c042d0242 pve-ha-lrm.service: depend on lxc.service
lxc.service kills all containers at shutdown. So we need to deppend
on that, so that we can cleanly shutdown our containers.
2016-01-12 12:02:23 +01:00
Dietmar Maurer
8d357f3071 re-add #DEBHELPER# code to postinst
otherwise the services are not re-started correctly!
2016-01-12 10:37:50 +01:00
Dietmar Maurer
b3395c8a8d cleanup postinst script
only remove files when necessary - and run systemctl daemon-reload.
2016-01-12 10:29:21 +01:00
Thomas Lamprecht
f8a3fc80af remove watchdog-mux.socket
The use of an systemd socket unit for the watchdog socket is not
necessary for us it even generates problems as the socket already
runs and accepts input when the watchdog-mux daemon itself is not
running. So the LRM/CRM could successfully open and update the
watchdog even if it was not running!

This patch removes the unit file, adds a postinst script which
handles the removal of the links generated from systemd itself
and removes also the code from watchdog-mux which handled
the systemd socket unit.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-01-12 10:18:55 +01:00
Dietmar Maurer
6263c81dfe allow to configure watchdog module in /etc/default/pve-ha-manager
All watchdog modules are blacklisted, so we cannot load them via /etc/modules.
Instead, watchdog-mux loads it at startup.
2015-12-03 11:13:14 +01:00
Dietmar Maurer
150f2bbf04 add trigger for pve-api-updates 2015-06-16 09:55:48 +02:00
Dietmar Maurer
6d09288cf9 use Wants instead of Requires inside systemd service definitions
To avoid unnecessary restarts of dependent services.
2015-06-09 09:32:15 +02:00
Dietmar Maurer
f55f4c3224 always start crm and lrm service
Even if there is no resources.cfg. That makes it easier to
enable HA, because we don't need to start services manually.
2015-06-05 10:00:48 +02:00
Dietmar Maurer
af3eccc0b8 lrm: reduce TimeoutStopSec
because systemd waits 2*TimeoutStopSec
2015-04-02 08:47:01 +02:00
Dietmar Maurer
3184ff8fb6 lrm: set systemd killmode to 'process'
We do not want to kill running VMs (for example during software update).
2015-04-02 08:43:28 +02:00
Dietmar Maurer
03307e137c depend on systemd (build-depend on dh-systemd) 2015-04-01 08:05:01 +02:00
Dietmar Maurer
239ee8cffa fix dependencies 2015-03-31 13:46:33 +02:00
Dietmar Maurer
13cf3b8804 restart lrm after upgrade 2015-03-27 08:51:41 +01:00
Dietmar Maurer
9c72e6604a depend on qemu-server 2015-03-27 06:32:04 +01:00
Dietmar Maurer
193d0c892b lrm: fix stop timeout 2015-03-26 10:46:02 +01:00
Dietmar Maurer
622cb56a0a fix service dependencies
So that we can shutdown without triggering the watchdog. It is also
important to depend on syslog.service (else logs gets lost)
2015-03-26 10:21:02 +01:00
Dietmar Maurer
6d3b8d9b8f do not restart watchdog-mux.socket 2015-03-13 16:18:35 +01:00
Dietmar Maurer
b0bf08a9a9 use systemd condition to avoid daemon startup when ha is disabled 2015-03-13 16:16:06 +01:00
Dietmar Maurer
587aca551f add Restart=no to make it more clear
This service should not be re-started, because a restart would clear
the watchdoh timer!
2015-03-13 08:36:07 +01:00
Dietmar Maurer
42ea821f69 do not restart watchdog-mux on upgrade 2015-03-12 09:10:56 +01:00
Dietmar Maurer
3d411a6b17 allow to shutdown CRM/LRM 2015-03-12 08:40:58 +01:00
Dietmar Maurer
df5743bdf9 add service description for pve-ha-lrm 2015-03-11 12:06:25 +01:00
Dietmar Maurer
92763a2eb4 set backlog for watchdog-mux.socket 2015-03-10 15:43:38 +01:00
Dietmar Maurer
0079b45f2e disable OOM killer for watchdog-mux 2015-03-10 15:23:50 +01:00
Dietmar Maurer
350a6750da conflict with watchdog packages 2015-03-10 15:14:19 +01:00
Dietmar Maurer
b1aac24306 add systemd service for pve-ha-crm 2015-03-10 11:24:06 +01:00
Dietmar Maurer
3e5fd654d1 add service description, fix socket mode 2015-03-09 12:50:18 +01:00
Dietmar Maurer
bcde32d44e install systemd files for watchdog-mux 2015-03-09 12:11:46 +01:00
Dietmar Maurer
ba878e35cd restructure directory layout for dpkg-buildpackage 2015-03-09 11:29:51 +01:00