get output from actual service
This commit is contained in:
parent
05faac8a30
commit
171359a8c4
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,9 @@ if systemctl is-failed "$Triggers"
|
||||||
then
|
then
|
||||||
InvocationID=$(systemctl show "$Triggers" --property=InvocationID --value)
|
InvocationID=$(systemctl show "$Triggers" --property=InvocationID --value)
|
||||||
ExitCode=$(systemctl show "$Triggers" -p ExecStartEx --value | sed 's/^{//' | sed 's/}$//' | tr ';' '\n' | xargs -n 1 | grep '^status=' | cut -d '=' -f 2)
|
ExitCode=$(systemctl show "$Triggers" -p ExecStartEx --value | sed 's/^{//' | sed 's/}$//' | tr ';' '\n' | xargs -n 1 | grep '^status=' | cut -d '=' -f 2)
|
||||||
journalctl INVOCATION_ID="$InvocationID" --output cat
|
journalctl INVOCATION_ID="$InvocationID" --output cat # timer invocation output
|
||||||
|
echo "-----------------"
|
||||||
|
journalctl _SYSTEMD_INVOCATION_ID="$InvocationID" --output cat -n 32 # service invocation output
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue