On Thu, Apr 06, 2017 at 08:55:05PM +, ithinki cant wrote:
>
> Per systemd documentation, for ExecStopPost=, some environment variables are
> supposed to be set for the executed script/binary:
>
> "Note that all commands that are configured with this setting are invoked
> with the result cod
Hey folks,
I'm doing the following in my service unit file:
ExecStopPost=/bin/myscript.sh
And in myscript.sh,
#!/bin/bash
echo $EXIT_STATUS >> /tmp/somefile
Yet when my service restarts (or I force crash it), an empty line is all that
is written out (ie: the environment variable is