Plan 9 from Bell Labs’s /n/sources/patch/applied/install-halt-nokfscmd/halt.orig

Copyright © 2009 Alcatel-Lucent.
Distributed under the Lucent Public License version 1.02.
Download the Plan 9 distribution.


#!/bin/rc

echo -n 'Halting file systems...'
for (i in /srv/kfs*) {
	if(! ~ $i /srv/kfs*cmd) {
		n=`{echo $i | sed 's!/srv/kfs\.(.*)!\1!'}
		if(~ $n /srv/kfs)
			disk/kfscmd halt
		if not
			disk/kfscmd -n$n halt
	}
}
if(ps | grep -s ' venti$')
	venti/sync -h tcp!127.0.0.1!17034
if(ps | grep -s ' fossil$'){
	echo fsys all halt >>/srv/fscons
	slay fossil|rc
}

echo done
echo
echo Remember to take the install disk out of the drive.
echo Feel free to turn off your computer.
while()
	sleep 3600


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2009 Alcatel-Lucent. All Rights Reserved.
Comments to webmaster@plan9.bell-labs.com.