aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-07-17 18:02:46 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-07-17 18:02:46 +0200
commit258848ace2bcecf1ae6c3b7b433805b18fbd37d0 (patch)
tree2cfd5f1e3b72f4c15e2e7edbc8ba811f546201ff /services
parent7097830f8fcb22ac7c17be6f3cfe25cda7ae810b (diff)
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 <david.oberhollenzer@tele2.at>
Diffstat (limited to 'services')
-rw-r--r--services/Makemodule.am2
-rw-r--r--services/ifdown.in7
2 files changed, 8 insertions, 1 deletions
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