Your post is unreadable, and your code cannot be copy-pasted because editor replaced normal ASCII quoting with “better” Unicode variants. Always post computer text as preformatted (</> button in editor).
This is wrong, Documentation should be URL, not free text.
It is rather unclear what you mean and your code in “workaround” is identical.
Your service terminates immediately when the echo in start completes, so when you do systemctl stop test from the systemd point of view this service is already inactive and there is nothing to do. ExecStop is only executed when the service is active.
If you copied and pasted your command lines, both of them cannot work. You invoke shell of user root-c and pass it the argument echo '6. Stop Test - With Redirect and SU' >> /tmp/log 2>&1 which will not be interpreted as command line.
If you did not copy and paste, further discussion is pointless, as we do not know what you are doing.
Hi, applogies - I’m not sure what happened, here is paste:
strace -o /tmp/test_su su root -c "echo '8. Stop Test - as root' >> /tmp/log 2>&1 &" # works
strace -o /tmp/test_su su root -c "echo '9. Stop Test - as root' >> /tmp/log 2>&1" & # not working