rfxn / advanced-policy-firewall

Advanced Policy Firewall (APF)
GNU General Public License v2.0
93 stars 46 forks source link

Pull request to add systemd support to APF #29

Closed tomdoyle87 closed 5 years ago

tomdoyle87 commented 5 years ago

Good Evening

Pull request relates to: https://github.com/rfxn/advanced-policy-firewall/issues/27

I can confirm changes do not affect non-systemd distros, tested changes on both centos 7 & 6; both worked as expected.

install.sh script copies systemd unit file to /lib/systemd/system and enables it if a distro supporting systemd, if not attempts to use /etc/init.d.

If apf does not start correctly, systemd should report any issues with the help of the wrapper file: files/apf-start.sh

If you need any further infomation, please let me know.

Thanks Tom.