Adding systemd unit file
This commit is contained in:
parent
39a9081632
commit
217213b661
15
debian/postfwd.service
vendored
Normal file
15
debian/postfwd.service
vendored
Normal file
|
@ -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
|
Loading…
Reference in a new issue