Re: How to create a systemd service that interact with nftables service

2023-06-25 Thread Anssi Saari
André Rodier writes: > Hello, all. > > I have a simple script, to save / and store dynamic nftables sets. > > I would like to create a systemd service, that starts -after- nftables is > started, and stops -before- nftables > is > stopped. > > Any idea on how to achieve this, please ? It depends

Re: How to create a systemd service that interact with nftables service

2023-06-25 Thread Nicolas George
Greg Wooledge (12023-06-25): > I think most of the time, this is not done as a systemd service at > all. It's usually invoked from the "up" hook when your network interface > is brought up, assuming you use /etc/network/interfaces. If you use > NetworkManager, then I don't know. > > Check interf

Re: How to create a systemd service that interact with nftables service

2023-06-25 Thread Greg Wooledge
On Sun, Jun 25, 2023 at 05:51:46PM +0200, André Rodier wrote: > I have a simple script, to save / and store dynamic nftables sets. > > I would like to create a systemd service, that starts -after- nftables is > started, and stops -before- nftables is > stopped. I think most of the time, this is

How to create a systemd service that interact with nftables service

2023-06-25 Thread André Rodier
Hello, all. I have a simple script, to save / and store dynamic nftables sets. I would like to create a systemd service, that starts -after- nftables is started, and stops -before- nftables is stopped. Any idea on how to achieve this, please ? I tried to play a little with ‘Requires’ or ‘After