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
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
On Fri, Apr 7, 2017 at 11:37 AM, Sebastian Treiber <
sebastian.trei...@gns-systems.de> wrote:
> Dear Mantas,
>
> thank you very much for your reply.
> At least on my system (CentOS7) this does not work. The mount process
> tries to mount the share as root even when specifying "multiuser":
>
It's
Dear Mantas,
thank you very much for your reply.
At least on my system (CentOS7) this does not work. The mount process
tries to mount the share as root even when specifying "multiuser":
From /etc/fstab:
//cifs_filer/share /mount_point cifs
sec=krb5,multiuser,x-systemd.automount 0 0
From