[systemd-devel] Socket activated SSHD service showing up as a failure when the client connection fReply-To:

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Jul 17 04:48:28 PDT 2014


On Thu, Jul 17, 2014 at 01:37:12PM +1000, Roger Qiu wrote:
> You  mean something like this:
> 
> ```
> $ cat /nix/store/wr8r8jrj204q3i0v4vfav8m63ssnv8w1-unit/sshd at .service
> [Unit]
> Description=SSH Daemon
> 
> [Service]
> Environment="LD_LIBRARY_PATH=/nix/store/sk3017fxx2vhj69saizk5634y3w6hqhn-systemd-212/lib"
> Environment="LOCALE_ARCHIVE=/nix/store/5jxnz56h6ya1wy0dvcll65vkkx9679g4-glibc-locales-2.19/lib/locale/locale-archive"
> Environment="PATH=/nix/store/2wc50fcn54axkg2kk71jm2r5h0w5rbh6-openssh-6.6p1/bin:/nix/store/qlg0baw29r7fj4isc2x47c05d8q7br2j-gawk-4.1.0/bin:/nix/store/xdswdgz11w9lm9n9bzb6spl7dj45s2x2-coreutils-8.21/bin:/nix/store/sls52f6fkpqfs0kj4w0k525v57zrsz9x-findutils-4.4.2/bin:/nix/store/937i66g191shz0hwzll61vmi0zvy3gwy-gnugrep-2.14/bin:/nix/store/93wabgii15q4d74fqgcpfka1qy42igr4-gnused-4.2.2/bin:/nix/store/sk3017fxx2vhj69saizk5634y3w6hqhn-systemd-212/bin:/nix/store/2wc50fcn54axkg2kk71jm2r5h0w5rbh6-openssh-6.6p1/sbin:/nix/store/qlg0baw29r7fj4isc2x47c05d8q7br2j-gawk-4.1.0/sbin:/nix/store/xdswdgz11w9lm9n9bzb6spl7dj45s2x2-coreutils-8.21/sbin:/nix/store/sls52f6fkpqfs0kj4w0k525v57zrsz9x-findutils-4.4.2/sbin:/nix/store/937i66g191shz0hwzll61vmi0zvy3gwy-gnugrep-2.14/sbin:/nix/store/93wabgii15q4d74fqgcpfka1qy42igr4-gnused-4.2.2/sbin:/nix/store/sk3017fxx2vhj69saizk5634y3w6hqhn-systemd-212/sbin"
> 
> 
> X-StopIfChanged=false
> ExecStart=/nix/store/2wc50fcn54axkg2kk71jm2r5h0w5rbh6-openssh-6.6p1/sbin/sshd
> -i -f /nix/store/ai2a554az21b5zhd1kamcznbim4gd924-sshd_config
> ExecStartPre=/nix/store/i5wnidc4707k3pgcbhyjq3qb4ajgyx5n-unit-script/bin/sshd at -pre-start
> KillMode=process
> StandardInput=socket
> SuccessExitStatus=255
Yes.

> If I add that in, what about the normal exit status of "0"? Would
> that override the successful exit code of 0?
No, it's always in addition to code 0 and signals SIGHUP, SIGINT, SIGTERM, and SIGPIPE.

Zbyszek


More information about the systemd-devel mailing list