-description "Save random entropy on shutdown and restore it at boot time"
+description "Save random entropy on shutdown and restore it at boot time"
start on pld.sysinit-done
stop on pld.shutdown-started
chmod 600 $SEED_FILE
dd if=/dev/urandom of=$SEED_FILE count=1 bs=$bytes 2>/dev/null
end script
-
export RUNLEVEL
console output
exec /etc/rc.d/rc $RUNLEVEL
-
-# vi: ft=upstart
script
exec /bin/sh
end script
+
post-stop script
if [ "$RUNLEVEL" = "S" ]; then
runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
exec telinit $runlevel
fi
end script
-
-# vi: ft=upstart
# without information so that it defaults to previous=N runlevel=S.
console output
exec /etc/rc.d/rc.sysinit
+
post-stop script
if [ "$UPSTART_EVENTS" = "startup" ]; then
runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
exec telinit $runlevel
fi
end script
-
-# vi: ft=upstart