From 901e7d7f21cfff30c7068e51471146e2d7671fff Mon Sep 17 00:00:00 2001 From: Viacheslav Date: Mon, 20 Dec 2021 17:02:45 +0000 Subject: cluster: T4083: Make run dir for heartbeat In 1.4 cluster/heartbeat can't start because there is a lack of the directory "/run/heartbeat". Create this directory. --- scripts/vyatta-update-cluster.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/vyatta-update-cluster.pl b/scripts/vyatta-update-cluster.pl index 7ab807b..d01bbd3 100755 --- a/scripts/vyatta-update-cluster.pl +++ b/scripts/vyatta-update-cluster.pl @@ -8,6 +8,7 @@ use Vyatta::Cluster::Config; my $HA_DIR = "/etc/ha.d"; my $HA_INIT = "/etc/init.d/heartbeat"; my $SERVICE_DIR = "/etc/init.d"; +my $RUN_DIR = "/run/heartbeat"; my $conntrackd_service = undef; GetOptions("conntrackd_service=s" => \$conntrackd_service, @@ -53,7 +54,7 @@ if (defined($err)) { exit 1; } -my $ret = system("mkdir -p $HA_DIR"); +my $ret = system("mkdir -p $HA_DIR && mkdir -p $RUN_DIR"); if ($ret >> 8) { print STDERR "Error: cannot create $HA_DIR\n"; exit 1; -- cgit v1.2.3