From 8647854efe986d7b8bcab5a3dbe6e7541c46713f Mon Sep 17 00:00:00 2001 From: Ilya Tumaykin Date: Sun, 19 Jul 2015 06:18:54 +0300 Subject: [PATCH] extras: add systemd unit file and tmpfiles.d configuration for fwknopd --- extras/systemd/fwknopd.service | 12 ++++++++++++ extras/systemd/fwknopd.tmpfiles.conf | 1 + 2 files changed, 13 insertions(+) create mode 100644 extras/systemd/fwknopd.service create mode 100644 extras/systemd/fwknopd.tmpfiles.conf diff --git a/extras/systemd/fwknopd.service b/extras/systemd/fwknopd.service new file mode 100644 index 00000000..d2e8c312 --- /dev/null +++ b/extras/systemd/fwknopd.service @@ -0,0 +1,12 @@ +[Unit] +Description=Firewall Knock Operator Daemon +After=network-online.target + +[Service] +Type=forking +PIDFile=/run/fwknop/fwknopd.pid +ExecStart=/usr/sbin/fwknopd +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target diff --git a/extras/systemd/fwknopd.tmpfiles.conf b/extras/systemd/fwknopd.tmpfiles.conf new file mode 100644 index 00000000..b7cb3856 --- /dev/null +++ b/extras/systemd/fwknopd.tmpfiles.conf @@ -0,0 +1 @@ +d /run/fwknop 0700 root root -