carlos / platform Public

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

Plain git — no account needed to clone.

Download

Download this file

1# đŸ¤– Runs the self-test against the clamd that is running now. BindsTo makes it
2# go inactive the moment clamd stops or restarts, and the TCP listener is bound
3# to THIS unit, so the port follows the test, not the boot.
4[Unit]
5Description=Prove this clamd never answers OK for an over-limit archive
6BindsTo=clamav-daemon.service
7After=clamav-daemon.service
8# Restarting this unit by hand after a failure reopens the port on a pass.
9# Wants= adds no ordering; the socket orders itself after this unit.
10Wants=scanner-tcp.socket
11
12[Service]
13Type=oneshot
14RemainAfterExit=yes
15ExecStart=/usr/local/sbin/scanner-selftest
16TimeoutStartSec=1800
17# A killed test leaves its fixtures (about 1.2 GB) behind in /var/tmp. A
18# private /var/tmp goes with the unit. clamd never reads the fixture paths:
19# every one is streamed.
20PrivateTmp=yes
21
22[Install]
23WantedBy=multi-user.target
24