summarylogtreecommitdiffstats
path: root/ufw.service
diff options
context:
space:
mode:
Diffstat (limited to 'ufw.service')
-rw-r--r--ufw.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/ufw.service b/ufw.service
new file mode 100644
index 000000000000..09865ac89866
--- /dev/null
+++ b/ufw.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=CLI Netfilter Manager
+DefaultDependencies=no
+After=systemd-sysctl.service
+Before=sysinit.target
+ConditionPathExists=|/etc/ufw/ufw.conf
+ConditionDirectoryNotEmpty=|/usr/lib/ufw
+
+[Service]
+Type=oneshot
+ExecStart=/usr/lib/ufw/ufw-init start
+ExecStop=/usr/lib/ufw/ufw-init stop
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target