Commit 859a0a78 authored by Tails developers's avatar Tails developers
Browse files

Do not run unecessary scripts during shutdown sequence

Tails shutdown sequence should be as fast as possible. So it is better to skip
initscripts that are not relevant to our amnesic environment.

See <https://mailman.boum.org/pipermail/tails-dev/2012-May/001180.html> for the
relevant discussion.
parent ee11890a
......@@ -9,16 +9,26 @@ tails-sdmem-on-media-removal
"
PATCHED_INITSCRIPTS="
alsa-utils
gdomap
haveged
hdparm
i2p
ifupdown
kexec
kexec-load
laptop-mode
memlockd
network-manager
pdnsd
plymouth
polipo
resolvconf
saned
spice-vdagent
tor
ttdnsd
urandom
"
# Ensure that we are using dependency based boot
......
Tails specific: don't bother cleaning up interface status, we are amnesic.
--- chroot.orig/etc/init.d/ifupdown 2012-09-24 10:05:13.021047615 +0200
+++ chroot/etc/init.d/ifupdown 2012-09-24 10:47:23.717869294 +0200
@@ -7,1 +7,1 @@
-# Default-Stop: 0 6
+# Default-Stop:
Tails specific: gdomap is not used between processes running as the same user
on the same host.
on the same host. No need to stop it properly on shutdown either.
--- chroot.orig/etc/init.d/gdomap 2012-09-24 10:10:20.733885443 +0200
+++ chroot/etc/init.d/gdomap 2012-09-24 10:05:12.829042105 +0200
......@@ -7,4 +7,4 @@ on the same host.
-# Default-Start: 2 3 4 5
+# Default-Start:
-# Default-Stop: 0 1 6
+# Default-Stop: 0 1 6 2 3 4 5
+# Default-Stop:
Tails specific: ttdnsd is started via NetworkManager hooks
Tails specific: ttdnsd is started via NetworkManager hooks.
No need to properly stop it on shutdown.
--- chroot.orig/etc/init.d/ttdnsd 2012-09-24 10:05:13.333056580 +0200
+++ chroot/etc/init.d/ttdnsd 2012-09-24 10:03:30.638108333 +0200
......@@ -6,4 +7,4 @@ Tails specific: ttdnsd is started via NetworkManager hooks
-# Default-Start: 2 3 4 5
+# Default-Start:
-# Default-Stop: 0 1 6
+# Default-Stop: 0 1 6 2 3 4 5
+# Default-Stop:
Tails specific: no need to save or restore the seed, we are amnesic.
--- chroot.orig/etc/init.d/urandom 2012-09-24 10:05:13.385058073 +0200
+++ chroot/etc/init.d/urandom 2012-09-24 10:47:23.717869294 +0200
@@ -6,2 +6,2 @@
-# Default-Start: S
+# Default-Start:
-# Default-Stop: 0 6
+# Default-Stop:
Tails specific: we are amnesic, no need to save mixer levels on shutdown.
--- chroot.orig/etc/init.d/alsa-utils 2012-09-24 10:05:12.749039812 +0200
+++ chroot/etc/init.d/alsa-utils 2012-09-24 10:47:23.717869294 +0200
@@ -10,1 +10,1 @@
-# Default-Stop: 0 1 6
+# Default-Stop:
Tails specific: no need to stop properly on shutdown.
--- chroot.orig/etc/init.d/haveged 2012-09-24 10:05:12.829042105 +0200
+++ chroot/etc/init.d/haveged 2012-09-24 10:47:23.717869294 +0200
@@ -9,1 +9,1 @@
-# Default-Stop: 0 1 6
+# Default-Stop:
Tails specific: no need to stop properly on shutdown: we are amnesic.
--- chroot.orig/etc/init.d/laptop-mode 2012-09-24 10:05:13.073049110 +0200
+++ chroot/etc/init.d/laptop-mode 2012-09-24 10:47:23.717869294 +0200
@@ -15,1 +15,1 @@
-# Default-Stop: 0 1 6
+# Default-Stop:
Tails specific: no need to stop properly on shutdown.
--- chroot.orig/etc/init.d/pdnsd 2012-09-24 10:05:13.161051646 +0200
+++ chroot/etc/init.d/pdnsd 2012-09-24 10:47:23.717869294 +0200
@@ -7,1 +7,1 @@
-# Default-Stop: 0 1 6
+# Default-Stop:
Tails specific: no need to stop properly on shutdown.
--- chroot.orig/etc/init.d/polipo 2012-09-24 10:05:13.173051981 +0200
+++ chroot/etc/init.d/polipo 2012-09-24 10:47:23.717869294 +0200
@@ -7,1 +7,1 @@
-# Default-Stop: 0 1 6
+# Default-Stop:
Tails specific: no need to stop properly on shutdown, we are amnesic.
--- chroot.orig/etc/init.d/resolvconf 2012-09-24 10:05:13.285055205 +0200
+++ chroot/etc/init.d/resolvconf 2012-09-24 10:47:23.717869294 +0200
@@ -9,1 +9,1 @@
-# Default-Stop: 0 6
+# Default-Stop:
Tails specific: no need to stop properly on shutdown, we are amnesic.
--- chroot.orig/etc/init.d/saned 2012-09-24 10:05:13.297055555 +0200
+++ chroot/etc/init.d/saned 2012-09-24 10:47:23.717869294 +0200
@@ -10,1 +10,1 @@
-# Default-Stop: 0 1 6
+# Default-Stop:
Tails specific: no need to stop properly on shutdown.
--- chroot.orig/etc/init.d/spice-vdagent 2012-09-24 10:05:13.305055765 +0200
+++ chroot/etc/init.d/spice-vdagent 2012-09-24 10:47:23.717869294 +0200
@@ -17,1 +17,1 @@
-# Default-Stop: 0 1 6
+# Default-Stop:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment