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

[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

Re: [systemd-devel] systemd/automount for multiple users using Kerberos

2017-04-07 Thread Mantas Mikulėnas
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

Re: [systemd-devel] systemd/automount for multiple users using Kerberos

2017-04-07 Thread Sebastian Treiber
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