On 3/4/20 7:45 PM, Tom Eastep wrote:
> On 3/4/20 6:30 PM, J Cliff Armstrong via Shorewall-users wrote:
> 
>> Sorry to butt in, but it's worth noting that Systemd has a feature
>> called "drop-in overrides" that can alleviate this inconsistency
>> for people for whom it's an issue. Instead of modifying the
>> shorewall.service file in `/lib/systemd/system/`, type (as root):
>> `systemctl edit shorewall.service`. This will open the default
>> terminal editor to a blank file in which you can paste the
>> following:
> 
>> [service]
>> # reset ExecStop ExecStop=
>> # set ExecStop to "stop" instead of "clear"
>> ExecStop=/sbin/shorewall $OPTIONS stop
> 
>> Then type `systemctl daemon-reload` to activate the changes. This
>> change will survive future updates of the shorewall package from
>> apt repositories. The override file itself will be saved to
>> `/etc/systemd/system/shorewall.service.d/`.
> 
> 
> Thanks, Cliff!
> 

One correction - the first line of the override file should contain

        [Service]

rather than

        [service]

Thanks again, Cliff

-Tom
-- 
Tom Eastep        \ Q: What do you get when you cross a mobster
Shoreline,         \    with an international standard?
Washington, USA     \ A: Someone who makes you an offer you
http://shorewall.org \    can't understand
                      \________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to