3 ms·
Not sure I follow about the environment variables. As for 'exec this or send me an email' -- I would also much prefer to see this be done by systemd itself. Fo
by yrro 7y ago
Not sure I follow about the environment variables.
As for 'exec this or send me an email' -- I would also much prefer to see this be done by systemd itself. Fortunately bash's 'pipefail' feature plus bsd-mailx's '-s' flag make this reasonably quick and sane; I wouldn't even bother to attempt it if I were stuck with POSIX sh or if the mail command lacked the logic to not send the mail if stdin is empty.
- alxlaz 7y ago> Not sure I follow about the environment variables. I thought that environment variable passed via the Environment= options might not be correctly set, but it seems they are :-).