From 9119ebb08e8693e728553eca0304760557409a80 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Tue, 28 Oct 2014 10:56:00 -0500 Subject: [PATCH] Add systemd init file --- init-scripts/systemd | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 init-scripts/systemd 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