mirror of https://github.com/schoebel/mars
marsadm: report systemd operation status
This commit is contained in:
parent
11031d77ff
commit
2bb7cbfbfe
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue