]> Zhao Yanbai Git Server - minix.git/commitdiff
Tell RS server about upcoming shutdown.
authorJorrit Herder <jnherder@minix3.org>
Thu, 20 Oct 2005 20:38:58 +0000 (20:38 +0000)
committerJorrit Herder <jnherder@minix3.org>
Thu, 20 Oct 2005 20:38:58 +0000 (20:38 +0000)
etc/rc

diff --git a/etc/rc b/etc/rc
index e619258c831c92c7988004216ee7e0a3a52c267d..bc4d8f0056e055ecf2cb632f7c498c6021a4fba1 100755 (executable)
--- a/etc/rc
+++ b/etc/rc
@@ -168,6 +168,12 @@ Mount $usr /usr failed -- Single user."
     esac
 
     # Things should be alright now.
+    ;;
+down|stop)
+    sync
+    # Tell RS server we're going down.
+    service shutdown
+    ;;
 esac
 
 # Further initialization.