From 258848ace2bcecf1ae6c3b7b433805b18fbd37d0 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 17 Jul 2018 18:02:46 +0200 Subject: Add ifdown service Add a service file and helper script to shut down all network interfaces during shutdown or reboot. Signed-off-by: David Oberhollenzer --- services/Makemodule.am | 2 +- services/ifdown.in | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 services/ifdown.in (limited to 'services') diff --git a/services/Makemodule.am b/services/Makemodule.am index e9e6ac7..75ab76d 100644 --- a/services/Makemodule.am +++ b/services/Makemodule.am @@ -6,7 +6,7 @@ init_DATA += services/sigterm services/sync services/devfs init_DATA += services/sysfs services/procfs services/tmpfs init_DATA += services/vfs services/ifrename services/ifcfg init_DATA += services/dhcpcd services/dhcpcdmaster services/unbound -init_DATA += services/dnsmasq +init_DATA += services/dnsmasq services/ifdown if USYSLOGD init_DATA += services/usyslogd diff --git a/services/ifdown.in b/services/ifdown.in new file mode 100644 index 0000000..1310098 --- /dev/null +++ b/services/ifdown.in @@ -0,0 +1,7 @@ +description "stop all network interfaces" +type wait +target %0 +after sigkill sigterm +before sync + +exec "@SCRIPTDIR@/ifdown.sh" \ No newline at end of file -- cgit v1.2.3