On Thu, 2018-10-11 at 01:46:02 +0200, Michael Biebl wrote:
> A quick test with /lib/systemd/systemd-udevd suggests that this is not
> quite working yet.
> 
> One thing I noticed is that NOTIFY_SOCKET is not set.
> And even if I manually set that via
> export NOTIFY_SOCKET=/run/s-s-d-channel.id.notify
> a test script using systemd-notify [1] yields
> 
> Failed to notify init system: Connection refused

Ok, I've force pushed to that branch a version that should work, at
least it does for me locally. :)

I've switched the socket to be on /tmp so that non-root users can use
it too. I've got some code to generate a tempdir to hold the socket,
but meh, that's ugly. I'm also undecided whether the timeout should
exit non-zero, I might want to make that configurable, and perhaps
default to non-failure. I think I'll also add support for ERRNO+STATUS
and probably also the new EXTEND_TIMEOUT_USEC.

Thanks,
Guillem

Reply via email to