[9] | 1 | This a new implementation of a shutdown procedure. It allows
|
---|
| 2 | the system to go down graciously with informing the
|
---|
| 3 | users. This package contains 3 programs:
|
---|
| 4 |
|
---|
| 5 | - halt = Immediately stop the system, no info to users
|
---|
| 6 | - shutdown = Inform users, close down the system properly
|
---|
| 7 | - wall = Vincent Archer's implementation of wall (Write all)
|
---|
| 8 |
|
---|
| 9 | Installing
|
---|
| 10 |
|
---|
| 11 | Shutdown and halt use a new systemcall, which I've added to
|
---|
| 12 | MM. Therefor there are several diff's which should be applied:
|
---|
| 13 |
|
---|
| 14 | callnr.hd - New callnr for reboot(2)
|
---|
| 15 | Diff against /usr/include/minix/callnr.h.
|
---|
| 16 | Those of you using a symlink package should
|
---|
| 17 | change the number and mm/table.c into a free
|
---|
| 18 | number. I used 54, LSTAT.
|
---|
| 19 | param.hd - Defines reboot_flag as a part of the messages
|
---|
| 20 | proto.hd - Add's prototype for do_reboot()
|
---|
| 21 | table.cd - Interpretation of the systemcall to MM
|
---|
| 22 | mm.cd - I have added the do_reboot code to mm/getset.c but
|
---|
| 23 | I couldn't find a getset.c to create a useable diff :-(
|
---|
| 24 | So you can add where you want it. It is pure code, no diff.
|
---|
| 25 |
|
---|
| 26 | Now edit log.c and search for ``host''. Change this into your
|
---|
| 27 | systemname or make it empty.
|
---|
| 28 |
|
---|
| 29 | Shutdown and halt log their actions in /usr/adm/log, edit the
|
---|
| 30 | makefile and undefine -DLOG if you don't want this (this at the end of
|
---|
| 31 | the makefile). You can change SHUT_LOG in shutdown.c and log.c if you
|
---|
| 32 | want it in another file.
|
---|
| 33 |
|
---|
| 34 | Then type a `make'. This will take a minute or so (13 sec. with bcc :-).
|
---|
| 35 | Remember to build a new image and update the ps_database.
|
---|
| 36 |
|
---|
| 37 | Type `make install' to place the program's where I've got them.
|
---|
| 38 | Use them, try them and let me now if you've got problems running
|
---|
| 39 | something.
|
---|
| 40 |
|
---|
| 41 | I have tested to sources both on 16-bits and 32-bits MINIX. I have compiled
|
---|
| 42 | it with gcc, bcc and ACK, so that shouldn't really give a problem. Maybe
|
---|
| 43 | the standard MINIX-make chokes on the makefile, atleast mine did.
|
---|
| 44 |
|
---|
| 45 | NOTE:
|
---|
| 46 | Make install does not place the man-pages somewhere. You should
|
---|
| 47 | do this yourself.
|
---|
| 48 |
|
---|
| 49 | --
|
---|
| 50 | Edvard Tuinder ed@pulstar.NL.mugnet.org v892231@si.hhs.NL
|
---|
| 51 | Student Computer Science
|
---|
| 52 | Haagse Hogeschool, The Hague, The Netherlands
|
---|