mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-28 10:33:21 +01:00
badf2fc9f0
By default, in Debian and its derivatives, stopping the Shorewall service executes `/sbin/shorewall clear`. The `SAFESTOP` setting in /etc/default/shorewall is intended to stop the service by calling `/sbin/shorewall stop`. However, the systemd service files do not support this. Instead, install a shell-script that sources /etc/default/shorewall and honours `SAFESTOP` when stopping Shorewall and patch the service files to call it. Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
25 lines
712 B
Plaintext
25 lines
712 B
Plaintext
#
|
|
# The Shoreline Firewall (Shorewall) Packet Filtering Firewall
|
|
#
|
|
# Copyright 2011 Jonathan Underwood <jonathan.underwood@gmail.com>
|
|
# Copyright 2015 Tom Eastep <teastep@shorewall.net>
|
|
#
|
|
[Unit]
|
|
Description=Shorewall IPv4 firewall (lite)
|
|
Documentation=man:shorewall-lite(8)
|
|
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=/usr/share/shorewall/stop_service shorewall-lite
|
|
ExecReload=/sbin/shorewall-lite $OPTIONS reload $RELOADOPTIONS
|
|
|
|
[Install]
|
|
WantedBy=basic.target
|