summaryrefslogtreecommitdiff
path: root/public/fs
diff options
context:
space:
mode:
authorroot@culturestrings <root@culturestrings>2020-05-18 08:00:47 +0000
committerroot@culturestrings <root@culturestrings>2020-05-18 08:00:47 +0000
commit16a71a0628417b1b1eda564a88eb98b53a2db3cb (patch)
tree64a06207fbe058e972e3598f791431fd417bb894 /public/fs
parent6d66f2b7cd72d8f9e929ad77862b4adf6c814d3a (diff)
downloadculturestrings-16a71a0628417b1b1eda564a88eb98b53a2db3cb.tar.bz2
culturestrings-16a71a0628417b1b1eda564a88eb98b53a2db3cb.tar.xz
systemd: added ipsets service configuration.
Diffstat (limited to 'public/fs')
-rw-r--r--public/fs/etc/systemd/system/update-ipsets.service10
-rw-r--r--public/fs/etc/systemd/system/update-ipsets.timer8
2 files changed, 18 insertions, 0 deletions
diff --git a/public/fs/etc/systemd/system/update-ipsets.service b/public/fs/etc/systemd/system/update-ipsets.service
new file mode 100644
index 0000000..a31abd6
--- /dev/null
+++ b/public/fs/etc/systemd/system/update-ipsets.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=FireHOL ipset updater
+After=network-online.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/update-ipsets
+
+User=root
+Group=root
diff --git a/public/fs/etc/systemd/system/update-ipsets.timer b/public/fs/etc/systemd/system/update-ipsets.timer
new file mode 100644
index 0000000..a153a30
--- /dev/null
+++ b/public/fs/etc/systemd/system/update-ipsets.timer
@@ -0,0 +1,8 @@
+[Unit]
+Description=Run FireHOL ipset updater
+
+[Timer]
+OnCalendar=hourly
+
+[Install]
+WantedBy=timers.target