From 2666c4a2a50b8db7088c8a75666901e1761604c1 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Fri, 14 May 2021 00:19:06 +0100 Subject: [PATCH] added systemd unit --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 7a67939..1d3366a 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,27 @@ sysctl -w net.ipv4.conf.all.arp_ignore=1 See http://kb.linuxvirtualserver.org/wiki/Using_arp_announce/arp_ignore_to_disable_ARP + +### Systemd unit + + [Unit] + Description=NetCombiner for interface %i + After=network-online.target + + [Service] + Type=forking + + ExecStartPre=/etc/netcombiner/%i.pre + ExecStart=/usr/local/sbin/netcombiner %i + ExecStartPost=/etc/netcombiner/%i.post + + User=root + Group=root + + Restart=always + + [Install] + WantedBy=multi-user.target ### Setup Scripts These are functional setup scripts that make the application run as intended on Linux.