carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1# đŸ¤– clamd on TCP, for the console. Open only behind a passed self-test.
2#
3# DefaultDependencies=no is load-bearing. A socket unit is ordered before
4# sockets.target by default, sockets.target before basic.target, and every
5# service (the self-test included) after basic.target. A socket that must also
6# come AFTER the self-test closes that loop, and systemd breaks an ordering
7# cycle by dropping a job, which could leave this port shut after a reboot.
8# So it opts out, restores what it still needs, and is started by
9# multi-user.target and by clamd's Wants=, never by sockets.target.
10[Unit]
11Description=clamd on TCP, open only behind a passed self-test
12DefaultDependencies=no
13After=sysinit.target
14Requires=scanner-selftest.service
15After=scanner-selftest.service
16BindsTo=scanner-selftest.service
17Conflicts=shutdown.target
18Before=shutdown.target
19
20[Socket]
21ListenStream=@PRIVATE_IP@:3310
22# Binds even if the private address is not up yet at boot.
23FreeBind=yes
24
25[Install]
26WantedBy=multi-user.target
27