Re: [systemd-devel] Main process exit status variables not being sent to ExecStopPost= script

2017-04-07 Thread Tomasz Torcz
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

[systemd-devel] Main process exit status variables not being sent to ExecStopPost= script

2017-04-07 Thread ithinki cant
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