From 7d0b6cc32d0ae5ccf133923c5833afddc38496d5 Mon Sep 17 00:00:00 2001 From: steckerhalter Date: Sun, 18 Mar 2018 16:11:23 +0100 Subject: [PATCH] add filtron systemd service --- etc/systemd/system/filtron.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 etc/systemd/system/filtron.service diff --git a/etc/systemd/system/filtron.service b/etc/systemd/system/filtron.service new file mode 100644 index 0000000..20dd70e --- /dev/null +++ b/etc/systemd/system/filtron.service @@ -0,0 +1,14 @@ +[Unit] +Description=filtron proxy + +[Service] +Type=simple +User=filtron +Environment="GOPATH=/usr/local/filtron/.go" +ExecStart=/usr/local/filtron/.go/bin/filtron -rules /usr/local/filtron/rules.json + +TimeoutSec=15 +Restart=always + +[Install] +WantedBy=multi-user.target