You are not logged in.

#1 2018-09-14 19:16:57

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Errors with my distccd.socket .. what am I doing wrong? [solved]

I'd like to use a systemd socket unit to activate distccd on my distcc slaves.  I crated the following distccd.socket but when I start a compile job, the socket throws errors on the slave machine and fails to start distccd.service as it should.  I'm thinking that one cannot use a socket unit to simply start a standard service.  Please educate me.  Thanks.

cat /usr/lib/systemd/system/distccd.socket 
[Unit]
Description=Distcc Activation Socket
Conflicts=distccd.service

[Socket]
ListenStream=3632

[Install]
WantedBy=sockets.target

Here is the error I get when I start compiling with distccd:

Sep 14 15:08:30 crossbow systemd[1]: Listening on Distcc Activation Socket.
-- Subject: Unit distccd.socket has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit distccd.socket has finished starting up.
-- 
-- The start-up result is RESULT.
Sep 14 15:09:48 crossbow systemd[1]: distccd.socket: Failed to queue service startup job (Maybe the service file is missing or not a template unit?): Invalid argument
Sep 14 15:09:48 crossbow systemd[1]: distccd.socket: Failed with result 'resources'.

For reference, I am using the package-provided distccd.service:

[Unit]
Description=Distributed C, C++ and Objective-C compiler
Documentation=man:distccd(1)
After=network.target

[Service]
User=nobody
EnvironmentFile=/etc/conf.d/distccd
ExecStart=/usr/bin/distccd --no-detach --daemon $DISTCC_ARGS

[Install]
WantedBy=multi-user.target

Last edited by graysky (2018-09-15 08:54:47)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2018-09-14 20:39:55

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Errors with my distccd.socket .. what am I doing wrong? [solved]

systemd.socket(5) wrote:

Note that the daemon software configured for socket activation with socket units needs to be able to accept sockets from systemd, either via systemd's native socket passing interface (see sd_listen_fds(3) for details) or via the traditional inetd(8)-style socket passing (i.e. sockets passed in via standard input and output, using StandardInput=socket in the service file).

distccd has an --inetd option.

That Conflicts seems a little odd btw.

Offline

#3 2018-09-15 08:54:38

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Errors with my distccd.socket .. what am I doing wrong? [solved]

I see it, thanks... in the distccd manpage as well.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB