You are not logged in.
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 packages • Zsh and other configs
Offline
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
I see it, thanks... in the distccd manpage as well.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline