diff --git a/init-scripts/systemd b/init-scripts/systemd new file mode 100644 index 0000000..16bac0c --- /dev/null +++ b/init-scripts/systemd @@ -0,0 +1,11 @@ +[Unit] +Description=fail2ban REST server +Documentation=man:fail2rest(1) +ConditionPathExists=/etc/fail2rest.json +After=fail2ban.service + +[Service] +ExecStart=/usr/bin/fail2rest -config=/etc/fail2rest.json + +[Install] +WantedBy=multi-user.target