git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorHarald Pfeiffer <harald.pfeiffer _ xmart.de> 2018-07-05 20:11:59 +0200
committerHarald Pfeiffer <harald.pfeiffer _ xmart.de> 2018-07-05 20:11:59 +0200
commitb1332ed3c4ea2f6667ce3149fdcc2be047ea119a (patch)
tree2814be2e7dc211ada46731e6fb0363005944551a /etc
downloadsystemd-units-b1332ed3c4ea2f6667ce3149fdcc2be047ea119a.tar.bz2
Initial commit
Diffstat (limited to 'etc')
-rw-r--r--etc/systemd/system/freshclam.service15
-rw-r--r--etc/tmpfiles.d/freshclam.conf1
2 files changed, 16 insertions, 0 deletions
diff --git a/etc/systemd/system/freshclam.service b/etc/systemd/system/freshclam.service
new file mode 100644
index 0000000..735d817
--- /dev/null
+++ b/etc/systemd/system/freshclam.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=ClamAV database updater (freshclam)
+Wants=network.target
+Requires=network.target
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/local/bin/freshclam-start
+ExecStop=/usr/local/bin/freshclam-die
+TimeoutStartSec=10s
+TimeoutStopSec=30s
+
+[Install]
+WantedBy=multi-user.target
diff --git a/etc/tmpfiles.d/freshclam.conf b/etc/tmpfiles.d/freshclam.conf
new file mode 100644
index 0000000..62e8d5d
--- /dev/null
+++ b/etc/tmpfiles.d/freshclam.conf
@@ -0,0 +1 @@
+D /run/freshclam 0750 clamupdate clamupdate -