Skip to content

Commit

Permalink
CA-391859: Failed to stop varstord-guard
Browse files Browse the repository at this point in the history
varstord-guard has following configuration in the service file

After=message-switch.service syslog.target

This means varstored-guard needs to be stopped before
message-switch, otherwise, it will hung and finally be killed by
systemd during xe-toolstack-restart

Move message-switch to the begining of the list to shutdown last
as all other daemons depend on it

Note: the list order is reversed by `for svc in $SERVICES`

Signed-off-by: Lin Liu <lin.liu@citrix.com>
  • Loading branch information
liulinC committed Apr 23, 2024
1 parent ce0d57d commit e699b39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/xe-toolstack-restart
Expand Up @@ -27,10 +27,10 @@ echo "Executing $FILENAME"

POOLCONF=`cat @ETCXENDIR@/pool.conf`
if [ $POOLCONF == "master" ]; then MPATHALERT="mpathalert"; else MPATHALERT=""; fi
SERVICES="perfmon v6d xenopsd xenopsd-xc xenopsd-xenlight
SERVICES="message-switch perfmon v6d xenopsd xenopsd-xc xenopsd-xenlight
xenopsd-simulator xenopsd-libvirt xcp-rrdd-iostat xcp-rrdd-squeezed
xcp-rrdd-xenpm xcp-rrdd-gpumon xcp-rrdd xcp-networkd squeezed forkexecd
$MPATHALERT xapi-storage-script xapi-clusterd varstored-guard message-switch"
$MPATHALERT xapi-storage-script xapi-clusterd varstored-guard"

tmp_file=$(mktemp --suffix="xe-toolstack-restart")
systemctl stop stunnel@xapi > $tmp_file 2>&1
Expand Down

0 comments on commit e699b39

Please sign in to comment.