From 217213b66111b7e94a619b927fb061f1b806501f Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Thu, 19 Oct 2017 10:16:23 +0200 Subject: [PATCH] Adding systemd unit file --- debian/postfwd.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 debian/postfwd.service diff --git a/debian/postfwd.service b/debian/postfwd.service new file mode 100644 index 0000000..2ca97aa --- /dev/null +++ b/debian/postfwd.service @@ -0,0 +1,15 @@ +[Unit] +Description=Postfix firewall daemon +After=network.target +Before=postfix.service + +[Service] +Environment=PIDFILE=/var/run/postfwd.pid +EnvironmentFile=-/etc/default/postfwd +ExecStart=/usr/sbin/postfwd $ARGS --daemon --file $CONF --interface $INET --port $PORT --user $RUNAS --group $RUNAS --pidfile $PIDFILE +ExecStop=/usr/sbin/postfwd --file $CONF --pidfile $PIDFILE --kill +ExecReload=/usr/sbin/postfwd --file $CONF --pidfile $PIDFILE --reload +Type=forking + +[Install] +WantedBy=multi-user.target