From 8bcee0ee01b791cb3ae190f4a86f4d347364e6b4 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 30 Jul 2015 14:17:36 -0700 Subject: [PATCH] Add Debian .service files - Install both .service files and SysV init scripts on Debian. Signed-off-by: Tom Eastep --- Shorewall-core/shorewallrc.debian | 3 ++- .../shorewall-init.service.214.debian | 18 ++++++++++++++++++ Shorewall-init/shorewall-init.service.debian | 17 +++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 Shorewall-init/shorewall-init.service.214.debian create mode 100644 Shorewall-init/shorewall-init.service.debian diff --git a/Shorewall-core/shorewallrc.debian b/Shorewall-core/shorewallrc.debian index f648d58e3..3e33930d1 100644 --- a/Shorewall-core/shorewallrc.debian +++ b/Shorewall-core/shorewallrc.debian @@ -15,7 +15,8 @@ INITFILE=$PRODUCT #Name of the product's installed SysV in 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.214 #Name of the file to install in $SYSTEMD. Default is $PRODUCT.service +SERVICEFILE=shorewall-init.service.214.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 new file mode 100644 index 000000000..bcf363cae --- /dev/null +++ b/Shorewall-init/shorewall-init.service.214.debian @@ -0,0 +1,18 @@ +# +# The Shoreline Firewall (Shorewall) Packet Filtering Firewall +# +# Copyright 2011 Jonathan Underwood +# +[Unit] +Description=Shorewall firewall (bootup security) +Before=network-pre.target +Wants=network-pre.target +Conflicts=iptables.service firewalld.service + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=-/etc/default/shorewall-init +StandardOutput=syslog +ExecStart=/sbin/shorewall-init start +ExecStop=/sbin/shorewall-init stop diff --git a/Shorewall-init/shorewall-init.service.debian b/Shorewall-init/shorewall-init.service.debian new file mode 100644 index 000000000..eaaa92556 --- /dev/null +++ b/Shorewall-init/shorewall-init.service.debian @@ -0,0 +1,17 @@ +# +# The Shoreline Firewall (Shorewall) Packet Filtering Firewall +# +# Copyright 2011 Jonathan Underwood +# +[Unit] +Description=Shorewall firewall (bootup security) +Before=network.target +Conflicts=iptables.service ip6tables.service firewalld.service + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=-/etc/default/shorewall-init +StandardOutput=syslog +ExecStart=/sbin/shorewall-init start +ExecStop=/sbin/shorewall-init stop