Summary: | systemd socket activation confuses saned | ||
---|---|---|---|
Product: | systemd | Reporter: | Felix Braun <Felix.Braun> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED NOTABUG | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
socket unit file
saned@ service file |
Description
Felix Braun
2014-11-20 19:54:07 UTC
Created attachment 109777 [details]
saned@ service file
Do things work if you use ListenStream=0.0.0.0:6566 or ListenStream=[::]:6566? This will force IPv4 or IPv6 listening. Also, consider explicitly setting BindIPv6Only=ipv6-only. I haven't set up IPv6 on my network, so I have only tried 0.0.0.0:6566, but that doesn't change the outcome. Anyway, saned gets invoked just fine with as well as without this modification. It's not so much the listening part that seems to be the problem, but the message passing between systemd and saned, if that makes any sense. I'm guessing that StandardInput=null StandardOutput=syslog are wrong. With inetd-style socket activation the socket is passed as stdin and stdout to the process. Does it work if those lines are removed (after systemd daemon-reload && systemctl restart saned.socket)? No, that didn't bring any changes either. Same error as before :-( I'm on armel architecture by the way. But I don't think that matters because the RedHat-Bug seems to be on amd64 (the reporter there only mentions 64-Bit) Any chance you can strace the sane binary? Prefix the ExecStart= command line with "strace -o /log/to/somewhere -D ..." Then attach the log file that creates, this should give us a hint what saned might be failing on. This unit file is missing StandardInput=socket and some other stanzas to work correctly. See https://bugzilla.redhat.com/show_bug.cgi?id=1091566#c8 for a detailed explanation. I can confirm that the solution described in the redhat bugzilla works for me too. Thanks a lot for your efforts! |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.