diff --git a/Shorewall-core/shorewallrc.debian.systemd b/Shorewall-core/shorewallrc.debian.systemd index 0a5c84c2e..6a8e3f47e 100644 --- a/Shorewall-core/shorewallrc.debian.systemd +++ b/Shorewall-core/shorewallrc.debian.systemd @@ -15,8 +15,7 @@ INITFILE= #Name of the product's installed SysV init script INITSOURCE=init.debian.sh #Name of the distributed file to be installed as the SysV init script ANNOTATED= #If non-zero, annotated configuration files are installed SYSCONFFILE=default.debian #Name of the distributed file to be installed in $SYSCONFDIR -SERVICEFILE=shorewall-init.service.debian - #Name of the file to install in $SYSTEMD. Default is $PRODUCT.service +SERVICEFILE=$PRODUCT.service.debian #Name of the file to install in $SYSTEMD. Default is $PRODUCT.service SYSCONFDIR=/etc/default #Directory where SysV init parameter files are installed SERVICEDIR=/lib/systemd/system #Directory where .service files are installed (systems running systemd only) SPARSE=Yes #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR diff --git a/Shorewall-init/shorewall-init.service.214.debian b/Shorewall-init/shorewall-init.service.214.debian index bcf363cae..a292e97a7 100644 --- a/Shorewall-init/shorewall-init.service.214.debian +++ b/Shorewall-init/shorewall-init.service.214.debian @@ -2,6 +2,7 @@ # The Shoreline Firewall (Shorewall) Packet Filtering Firewall # # Copyright 2011 Jonathan Underwood +# Copyright 2015 Tom Eastep # [Unit] Description=Shorewall firewall (bootup security) diff --git a/Shorewall-init/shorewall-init.service.debian b/Shorewall-init/shorewall-init.service.debian index eaaa92556..efd55e286 100644 --- a/Shorewall-init/shorewall-init.service.debian +++ b/Shorewall-init/shorewall-init.service.debian @@ -2,6 +2,7 @@ # The Shoreline Firewall (Shorewall) Packet Filtering Firewall # # Copyright 2011 Jonathan Underwood +# Copyright 2015 Tom Eastep # [Unit] Description=Shorewall firewall (bootup security) diff --git a/Shorewall-lite/shorewall-lite.service.debian b/Shorewall-lite/shorewall-lite.service.debian new file mode 100644 index 000000000..615b0877a --- /dev/null +++ b/Shorewall-lite/shorewall-lite.service.debian @@ -0,0 +1,22 @@ +# +# The Shoreline Firewall (Shorewall) Packet Filtering Firewall +# +# Copyright 2011 Jonathan Underwood +# Copyright 2015 Tom Eastep +# +[Unit] +Description=Shorewall IPv4 firewall (lite) +Wants=network-online.target +After=network-online.target +Conflicts=iptables.service firewalld.service + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=-/etc/default/shorewall-lite +StandardOutput=syslog +ExecStart=/sbin/shorewall-lite $OPTIONS start $STARTOPTIONS +ExecStop=/sbin/shorewall-lite $OPTIONS stop + +[Install] +WantedBy=basic.target diff --git a/Shorewall/shorewall.service.debian b/Shorewall/shorewall.service.debian new file mode 100644 index 000000000..46436f707 --- /dev/null +++ b/Shorewall/shorewall.service.debian @@ -0,0 +1,22 @@ +# +# The Shoreline Firewall (Shorewall) Packet Filtering Firewall +# +# Copyright 2011 Jonathan Underwood +# Copyright 2015 Tom Eastep +# +[Unit] +Description=Shorewall IPv4 firewall +Wants=network-online.target +After=network-online.target +Conflicts=iptables.service firewalld.service + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=-/etc/default/shorewall +StandardOutput=syslog +ExecStart=/sbin/shorewall $OPTIONS start $STARTOPTIONS +ExecStop=/sbin/shorewall $OPTIONS stop + +[Install] +WantedBy=basic.target diff --git a/Shorewall6-lite/shorewall6-lite.service.debian b/Shorewall6-lite/shorewall6-lite.service.debian new file mode 100644 index 000000000..151bb2d5c --- /dev/null +++ b/Shorewall6-lite/shorewall6-lite.service.debian @@ -0,0 +1,21 @@ +# +# The Shoreline Firewall (Shorewall) Packet Filtering Firewall +# +# Copyright 2011 Jonathan Underwood +# +[Unit] +Description=Shorewall IPv6 firewall (lite) +Wants=network-online.target +After=network-online.target +Conflicts=ip6tables.service firewalld.service + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=-/etc/sysconfig/shorewall6-lite +StandardOutput=syslog +ExecStart=/sbin/shorewall6-lite $OPTIONS start $STARTOPTIONS +ExecStop=/sbin/shorewall6-lite $OPTIONS stop + +[Install] +WantedBy=basic.target diff --git a/Shorewall6/shorewall6.service.debian b/Shorewall6/shorewall6.service.debian new file mode 100644 index 000000000..914381751 --- /dev/null +++ b/Shorewall6/shorewall6.service.debian @@ -0,0 +1,22 @@ +# +# The Shoreline Firewall (Shorewall) Packet Filtering Firewall +# +# Copyright 2011 Jonathan Underwood +# Copyright 2015 Tom Eastep +# +[Unit] +Description=Shorewall IPv6 firewall +Wants=network-online.target +After=network-online.target +Conflicts=ip6tables.service firewalld.service + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=-/etc/default/shorewall6 +StandardOutput=syslog +ExecStart=/sbin/shorewall6 $OPTIONS start $STARTOPTIONS +ExecStop=/sbin/shorewall6 $OPTIONS stop + +[Install] +WantedBy=basic.target