⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shutdown.8

📁 操作系统设计与实现源码
💻 8
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 14:24:03 1996%%Pages: (atend)%%DocumentFonts: (atend)/devps 180 dict def devps begin/res 10.000000 def/y_offset 843 def/X{exch}bind def/mm {transform round X round X itransform} bind def/r{rmoveto}bind def/m{moveto}bind def/l{lineto}bind def/rl{rlineto}bind def/st{stroke}bind def/gs{gsave}bind def/gr{grestore}bind def/cp{currentpoint}bind def/np{newpath}bind def/ct{curveto}bind defsystemdict /setpacking known { /savepacking currentpacking def true setpacking } if/m0{0 0 moveto}bind def/xc{//res div}bind def/yc{//res neg div //y_offset add}bind def/lc{yc X xc X l st}bind def/mc{yc X xc X m}bind def/el{gs /a X def a div 1 X scale cp np a xc 2 div 0 360 arc st gr}bind def/ar{cp 7 2 roll np xc 5 1 roll atan 3 1 roll atan X arc st}bind def/sp{yc X xc X 6 2 roll yc X xc X 6 2 roll yc X xc X 6 2 roll ct}bind def/V{//res neg div //y_offset addcurrentpoint pop Xm}bind def/H{//res div0 transform X round X itransform popcurrentpoint X popmoveto}bind def/h{//res div 0 r}bind def/v{//res neg div 0 X r}bind def/S{X H show}bind def/A{H //res div 1 index stringwidth pop sub 1 index length div 0 3 2 roll ashow}bind def/psize 10 def/height 0 def/cheight { height 0 ne { height } { psize } ifelse } bind def/slant 0 def/FF{findfont X dup 30 div 0 mm pop setlinewidth /psize X def    [psize 0 cheight slant sin slant cos div mul cheight 0 0]    makefont setfont}bind def/shade{gs /dy X def /dx X def np m 0 /dy rl /dx 0 rl 0 /dy neg rl /dx neg 0 rl closepath .9 setgray fillgr}bind def1 setlinecap/resolution res 72 mul def/startFig {	/SavedState save def	userdict maxlength dict begin	currentpoint transform	DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap		setlinewidth setmatrix	itransform moveto	/ury exch def	/urx exch def	/lly exch def	/llx exch def	/y exch 72 mul resolution div def	/x exch 72 mul resolution div def		currentpoint /cy exch def /cx exch def	/sx x urx llx sub div def	/sy y ury lly sub div def	sx sy scale	cx sx div llx sub	cy sy div ury sub translate		/DefFigCTM matrix currentmatrix def	/initmatrix {		DefFigCTM setmatrix	} def	/defaultmatrix {		DefFigCTM exch copy	} def	/initgraphics {		DocumentInitState setmiterlimit setgray setdash 			setlinejoin setlinecap setlinewidth setmatrix		DefFigCTM setmatrix	} def	/showpage {		initgraphics	} def}bind  def/clipFig {	currentpoint 6 2 roll	newpath 4 copy	4 2 roll moveto	6 -1 roll exch lineto	exch lineto	exch lineto	closepath clip	newpath	moveto}bind  def/doclip { llx lly urx ury clipFig } def/endFig {	end SavedState restore}bind  def/globalstart {	fontnum psize slant height resolution currentpoint 	pagesave restore gsave }bind  def/globalend {	grestore moveto	/resolution exch def /height exch def	/slant exch def /psize exch def /fontnum exch def	F	/pagesave save def}bind  def/fontnum 1 def systemdict /setpacking known { savepacking setpacking} ifend/BP{save mark devps begin m0/DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecapcurrentlinejoin currentdash currentgray currentmiterlimit ] cvx def}bind def/EP{end cleartomark restore showpage}def/Encoding-1 256 array def0 1 255 {Encoding-1 exch /.notdef put} forEncoding-1 8#301 StandardEncoding 8#101 26 getinterval putinterval %A-BEncoding-1 8#341 StandardEncoding 8#141 26 getinterval putinterval %a-bEncoding-1 8#241 StandardEncoding 8#301 16 getinterval putinterval %accentsEncoding-1 8#373 StandardEncoding 8#365 1 getinterval putinterval %dotlessiEncoding-1dup 8#41 /copyright putdup 8#42 /registered putdup 8#43 /trademark putdup 8#44 /logicalnot putdup 8#45 /Eth putdup 8#46 /eth putdup 8#47 /Thorn putdup 8#50 /thorn putdup 8#51 /brokenbar putdup 8#52 /degree putdup 8#53 /divide putdup 8#54 /multiply putdup 8#55 /minus putdup 8#56 /onehalf putdup 8#57 /onequarter putdup 8#60 /threequarters putdup 8#101 /Aacute putdup 8#102 /Acircumflex putdup 8#103 /Adieresis putdup 8#104 /Agrave putdup 8#105 /Aring putdup 8#106 /Atilde putdup 8#107 /Ccedilla putdup 8#110 /Eacute putdup 8#111 /Ecircumflex putdup 8#112 /Edieresis putdup 8#113 /Egrave putdup 8#114 /Iacute putdup 8#115 /Icircumflex putdup 8#116 /Idieresis putdup 8#117 /Igrave putdup 8#120 /Ntilde putdup 8#121 /Oacute putdup 8#122 /Ocircumflex putdup 8#123 /Odieresis putdup 8#124 /Ograve putdup 8#125 /Otilde putdup 8#126 /Scaron putdup 8#127 /Uacute putdup 8#130 /Ucircumflex putdup 8#131 /Udieresis putdup 8#132 /Ugrave putdup 8#133 /Ydieresis putdup 8#134 /Zcaron putdup 8#135 /aacute putdup 8#136 /acircumflex putdup 8#137 /adieresis putdup 8#140 /agrave putdup 8#141 /aring putdup 8#142 /atilde putdup 8#143 /ccedilla putdup 8#144 /eacute putdup 8#145 /ecircumflex putdup 8#146 /edieresis putdup 8#147 /egrave putdup 8#150 /iacute putdup 8#151 /icircumflex putdup 8#152 /idieresis putdup 8#153 /igrave putdup 8#154 /ntilde putdup 8#155 /oacute putdup 8#156 /ocircumflex putdup 8#157 /odieresis putdup 8#160 /ograve putdup 8#161 /otilde putdup 8#162 /scaron putdup 8#163 /uacute putdup 8#164 /ucircumflex putdup 8#165 /udieresis putdup 8#166 /ugrave putdup 8#167 /ydieresis putdup 8#170 /zcaron putpop/Enc-dict 30 dict defEnc-dict /tmpstr1 50 string putEnc-dict /tmpstr2 50 string putEnc-dict /tmpstr3 50 string dup (Encoding-) exch cvs pop put/AEnc-def { % arguments: the original font's name, encoding nrEnc-dict begintmpstr2 cvs /Enc-no exch def % Remember the number in a stringdup /OrigName exch def % remember the namefindfont dup maxlength dict /newdict exch def % get dictionary for new font{ exch dup /FID ne   { exch newdict 3 1 roll put }   { pop pop } % Ignore FID   ifelse} forallnewdict begin/Encoding  tmpstr3 9 Enc-no putinterval tmpstr3 0 9 Enc-no length add getinterval  cvn load  def % Replace encodingcurrentdict /UniqueID known{ /UniqueID UniqueID Enc-no cvi 49999 mul add def } if % Derive New UniqueIDend % newdict/FNlength OrigName tmpstr1 cvs length def % convert name, remember lengthFNlength 1 add Enc-no length add stringdup 0 OrigName tmpstr1 cvs putintervaldup FNlength (-) putintervaldup FNlength 1 add Enc-no putintervaldup 0 tmpstr1 0 FNlength getinterval putinterval % Add old namecvn dup newdict /FontName 3 2 roll put newdict definefontend % Enc-dict} def/Times-Roman 1 AEnc-def pop/R-1{/Times-Roman-1 FF}def/Times-Bold 1 AEnc-def pop/B-1{/Times-Bold-1 FF}def/R{/Times-Roman FF}def/B{/Times-Bold FF}def/I{/Times-Italic FF}def%%EndProlog%%Page: 1 1BP/slant 0 def/height 0 def480 V10 R720(SHUTDOWN)S1306(\()S1348(8)S1406(\))S2696(Eighth)S(Edition)296 2989 A4541(SHUTDOWN)S5127(\()S5169(8)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(shutdown)S10 R-11495(-)S10 R1577(graciously)S2021(close)S2253(the)S2401(system)S2705(down)S1248 V9 R720(S)S722(SY)S774(YN)S842(NO)S910(OP)S978(PS)S1030(SI)S1082(IS)S1115(S)S1368 V10 B1080(shutdown)S10 R1538([)S10 B-11572(-)S10 B1629(hrRmk)S10 R1943(])S2015([)S10 B-12049(-)S10 B2106(x)S10 I2194(code)S10 R2392(])S2464([)S10 I2498(time-speci\256cation)S10 R3252([)S10 I3286(message)S10 R3635(]])S1536 V9 R720(D)S722(DE)S790(ES)S848(SC)S900(CR)S962(RI)S1024(IP)S1057(PT)S1109(TI)S1167(IO)S1200(ON)S1268(N)S1656 V10 B(Shutdown)437 1080 A10 R1556(is)S1662(a)S1747(program)S2128(which)S2414(allows)S2717(a)S2802(system)S3121(operator)S3497(to)S3615(close)S3862(down)S4125(the)S4288(system)S4607(in)S4725(an)S4860(nice)S5068(way.)S1776 V10 B(Shutdown)437 1080 A10 R1559(informs)S1914(the)S2079(users)S2328(why)S2543(and)S2730(when)S2990(the)S3155(system)S3476(is)S3585(going)S3855(down.)S4170(This)S4390(warning)S4761(is)S4869(issued)S5161(10)S1896 V1080(minutes)S1428(before)S1716(shutdown)S2136(time)S2346(and)S2522(every)S2777(minute)S3087(in)S3196(the)S3350(last)S3521(5)S3602(minutes.)S4001(At)S4133(this)S4309(time)S4519(\(5)S4634(minutes\),)S10 B5042(shut-)S2016 V1080(down)S10 R1340(creates)S1646(a)S1716(\256le)S10 B1870(/etc/nologin)S10 R2393(to)S2496(prevent)S2823(new)S3016(users)S3248(from)S(logging)306 3469 A3800(in.)S2184 V10 B(Shutdown)437 1080 A10 R1549(keeps)S1810(a)S1887(log\256le)S2176(of)S2292(shutdowns.)S2803(Every)S3076(shutdown)S3498(is)S3598(registered)S4029(in)S10 B4140(/usr/adm/wtmp)S10 R4801(,)S4859(if)S4954(this)S5132(\256le)S2304 V1080(exists.)S1384(After)S1623(these)S1855(actions,)S2190(a)S2260(call)S2431(is)S(done)195 2523 A2743(to)S10 B2846(reboot)S10 R3126(\(2\))S3269(which)S3540(actually)S3884(brings)S4160(the)S4308(system)S4612(down.)S2472 V10 I1080(Time-speci\256cation)S10 R1850(may)S2049(be)S2171(something)S2616(like)S10 B2794(15:00)S10 R3028(,)S10 B3080(15.00)S10 R3305(,)S10 B3357(+15)S10 R3514(,)S3566(or)S10 B3677(now)S10 R3883(for)S4028(a)S4100(shutdown)S4517(at)S4617(3pm)S4822(\(twice\),)S5161(15)S2592 V1080(minutes)S1423(from)S1644(now,)S1867(or)S1976(immediately.)S2760 V1080(The)S1265(message)S1634(may)S1836(be)S1960(used)S2173(to)S2280(describe)S2645(why)S2847(the)S2999(system)S3307(is)S3403(going)S3660(down,)S3937(it)S4022(may)S4224(also)S4415(be)S4539(typed)S4791(on)S4920(standard)S2880 V(input)206 1080 A1311(with)S1515(the)S10 B-11663(-)S10 B1720(m)S10 R1829(option.)S3048 V9 R720(O)S722(OP)S790(PT)S842(TI)S900(IO)S933(ON)S1001(NS)S1069(S)S3168 V10 B-11080(-)S10 B1137(h)S10 R1440(This)S1660(\257ag)S1852(prevents)S2234(the)S2398(system)S2718(from)S(rebooting)385 2955 A3381(after)S3608(the)S3772(shutdown.)S4253(The)S4451(system)S4771(can)S4952(now)S5166(be)S3288 V1440(powered)S1812(off.)S2005(This)S2209(is)S2301(the)S2449(default.)S3456 V10 B-11080(-)S10 B1137(r)S10 R1440(This)S1644(\257ag)S1820(indicates)S2203(that)S2379(the)S2527(system)S(should)267 2831 A(reboot)257 3123 A3405(after)S(shutting)323 3616 A3964(down.)S3624 V10 B-11080(-)S10 B1137(R)S10 R(Reboot)290 1440 A1759(the)S1911(system)S2219(by)S(resetting)347 2349 A2726(it.)S2862(Normally)S3278(the)S3431(kernel)S(will)157 3713 A3900(try)S4042(to)S4150(return)S4421(to)S4529(the)S4682(Boot)S4907(Monitor.)S3744 V1440(With)S10 B-11666(-)S10 B1723(R)S10 R1821(the)S1969(system)S(will)157 2273 A(receive)292 2455 A2772(a)S2842(hardware)S3243(reset.)S3912 V10 B-11080(-)S10 B1137(x)S10 I1212(code)S10 R1440(Halt)S1643(the)S1795(system)S2103(and)S2277(let)S2407(the)S2560(Monitor)S2919(execute)S3257(the)S3410(given)S3663(code)S3883(as)S3997(if)S4089(typed)S4342(at)S4445(the)S4598(monitor)S4946(prompt.)S4032 V1440(You)S1638(can)S1803(for)S1946(instance)S2301(use)S10 B-12460(-)S10 B2517(x)S2592('boot)S2841(hd0')S10 R3062(as)S3171(a)S3241(very)S3445(fast)S3616(way)S3809(to)S(reboot)257 3912 A4194("from)S4456(the)S4604(top.")S4200 V10 B-11080(-)S10 B1137(m)S10 R1440(Allows)S1764(the)S1920(operator)S2289(to)S2400(type)S2606(a)S2684(shutdown)S3107(message)S3481(on)S3614(standard)S(input,)231 3988 A4252(that)S(will)157 4436 A4626(be)S4754(added)S5027(to)S5138(the)S4320 V1440(messages)S1845(displayed)S2255(on)S2380(all)S2506(terminals.)S4488 V10 B-11080(-)S10 B1137(k)S10 R1440(This)S1646(option)S1929(gives)S2168(the)S(possibility)418 2318 A2763(of)S2875(terminating)S3367(an)S3490(already)S3815(started)S4112(shutdown.)S4580(This)S4787(is)S4882(only)S5088(pos-)S4608 V1440(sible)S1655(if)S1742(shutdown)S2157(time)S2361(has)S2520(not)S2673(yet)S2821(arrived.)S4776 V10 B-11080(-)S10 B1137(C)S10 R1440(Check)S1727(if)S1819(the)S1972(system)S2281(crashed.)S2669(This)S2878(option)S3164(is)S3261(not)S3419(used)S3633(at)S3736(shutdown)S4156(time,)S4390(but)S4548(at)S(reboot)257 4651 A4939(time.)S5199(It)S4896 V1440(tells)S1636(if)S1726(the)S1877(\256le)S2034(systems)S(should)267 2380 A2675(be)S2798(checked)S3156(by)S3284(testing)S3580(if)S3670(the)S3821(last)S3989(entry)S4224(in)S4330(the)S4481(wtmp)S4738(\256le)S4894(is)S4988(a)S5060(shut-)S5016 V1440(down)S1688(entry.)S1970(\(A)S2102(crude)S(replacement)493 2351 A2869(for)S3012(a)S3082(\256le)S3236(system)S3540(clean)S3778(\257ag.\))S5184 V9 R720(F)S722(FI)S774(IL)S807(LE)S865(ES)S923(S)S5304 V10 R1080(/usr/adm/wtmp,)S1739(/etc/nologin,)S2269(/usr/adm/authlog)S5472 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S5592 V10 B1080(reboot)S10 R1360(\(2\),)S10 B1528(wall)S10 R1707(\(1\),)S10 B1875(halt)S10 R2043(\(8\),)S10 B2211(boot)S10 R2401(\(8\).)S5760 V9 R720(A)S722(AU)S790(UT)S858(TH)S916(HO)S984(OR)S1052(R)S5880 V10 R1080(Edvard)S1396(Tuinder)S(\(v892231@si.hhs.NL\))902 1740 A7903 V720(Page)S941(1)S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold Times-Italic%%Pages: 1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -