[Michal Moskal <malekith@pld.org.pl>] [MAILER-DAEMON@gabber.metalab.unc.edu: failure notice]

Arkadiusz Miskiewicz misiek w pld.ORG.PL
Wto, 12 Mar 2002, 17:36:18 CET


From: Michal Moskal <malekith w pld.org.pl>
To: pld-rc-scripts w pld.org.pl
Subject: umount tmpfs patch
User-Agent: Mutt/1.3.27i
X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/)

Attached patch tries to unmount tmpfs instances before turning off swap.
Without it, if tmpfs is filled beyond avaiable phisical memory, it
is impossible to turn of swap.

-- 
: Michal Moskal :::::::: malekith/at/pld.org.pl :  GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::: Wroclaw University, CS Dept :  {E-,w}-- {b++,e}>+++ h

Index: rc.shutdown
===================================================================
RCS file: /cvsroot/rc-scripts/rc.d/rc.shutdown,v
retrieving revision 1.18
diff -u -r1.18 rc.shutdown
--- rc.shutdown	27 Jan 2002 02:13:29 -0000	1.18
+++ rc.shutdown	12 Mar 2002 16:06:48 -0000
@@ -28,6 +28,8 @@
 # Write to wtmp file before unmounting /var
 halt -w
 
+run_cmd "Unmounting tmpfs (if any)" umount -a -t tmpfs
+
 # Turn off swap, then unmount file systems.
 run_cmd "Turning off swap and accounting" swapoff -a
 [ -x /sbin/accton ] && LC_ALL=C /sbin/accton 2>&1 | grep -v "not implemented"


-- 
Arkadiusz Miśkiewicz   IPv6 ready PLD Linux at http://www.pld.org.pl
misiek(at)pld.org.pl   AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PWr



Więcej informacji o liście dyskusyjnej pld-rc-scripts