marsadm: report systemd operation status

This commit is contained in:
Thomas Schoebel-Theuer 2019-11-20 10:51:38 +01:00
parent 11031d77ff
commit 2bb7cbfbfe
1 changed files with 4 additions and 1 deletions

View File

@ -596,7 +596,10 @@ sub systemd_activate {
lprint "==== Deactivate resource '$res' unit '$unit'\n"if $verbose; lprint "==== Deactivate resource '$res' unit '$unit'\n"if $verbose;
$op = "stop"; $op = "stop";
} }
_systemd_op($op, $unit); my $status = _systemd_op($op, $unit);
my $response_path = "$mars/resource-$res/userspace/systemd-status-$oper-$host";
set_link($status, $response_path);
finish_links();
return 1; return 1;
} }