I stuck an "hcp logoff" option in /etc/init.d/halt, to log off the machine after everything else was done. It works very well, and could easily be adapted to issue "hcp I cms" instead.
> -----Original Message----- > From: Adam Thornton [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 13, 2003 12:47 PM > To: [EMAIL PROTECTED] > Subject: Re: [LINUX-390] reset a computer > > > On Thu, Mar 13, 2003 at 11:31:56AM -0500, David Boyes wrote: > > IF you're already in CMS, just type profile to rerun the > profile exec. > > > > If you're not in CMS and the userid is set up to run CMS > (ie has a 191 > > minidisk and links to MAINT 190), then either using hcp to > run the IPL > > CMS command will do, or the real > share-nothing,take-no-prisoners IPL 190 > > PARM CLEAR should do the trick (not recommended for large numbers of > > guests). Both disrupt Linux, obviously. > > And both will leave your disk in an inconsistent state, > requiring fsck. > > Much better, IMHO, if you are or can easily be running a > kernel with the > shutdown/signal processing stuff in it, would be: > > Build a kernel with parmline support. Add Leland Lucius's patches to > appropriately case the VMPOFF stuff. Heck, save it as an NSS just > because you can. > > Then: > > IPL LINUXNSS PARM LINE VMPOFF="IPL CMS" > > Then, once it boots to Linux again, issue > > shutdown -h > > from the root prompt. > > Adam >
