½Ã½ºÅÛ°ü¸®ÀÚÀÇ ½°ÅÍ Ä¿ÇǴнº Ä¿ÇÇÇâÀÌ ³ª´Â *NIX
Ä¿ÇǴнº
½Ã½ºÅÛ/³×Æ®¿÷/º¸¾ÈÀ» ´Ù·ç´Â °÷
 FAQFAQ   °Ë»ö°Ë»ö   ¸â¹ö¸®½ºÆ®¸â¹ö¸®½ºÆ®   »ç¿ëÀÚ ±×·ì»ç¿ëÀÚ ±×·ì   »ç¿ëÀÚ µî·ÏÇϱâ»ç¿ëÀÚ µî·ÏÇϱâ 
 °³ÀÎ Á¤º¸°³ÀÎ Á¤º¸   ºñ°ø°³ ¸Þ½ÃÁö¸¦ È®ÀÎÇÏ·Á¸é ·Î±×ÀÎÇϽʽÿÀºñ°ø°³ ¸Þ½ÃÁö¸¦ È®ÀÎÇÏ·Á¸é ·Î±×ÀÎÇϽʽÿÀ   ·Î±×Àηα×ÀΠ

°¡ÀÔ¾øÀÌ ´©±¸³ª ±ÛÀ» ¾µ ¼ö ÀÖ½À´Ï´Ù. °øÁö»çÇ׿¡ ´ëÇÑ ´ñ±Û±îÁöµµ..




BBS >> ¼³Ä¡, ¿î¿µ Q&A | ³×Æ®¿÷, º¸¾È Q&A | ÀÏ¹Ý Q&A || Á¤º¸¸¶´ç | AWS || ÀÚÀ¯°Ô½ÃÆÇ | ±¸Àα¸Á÷ || °øÁö»çÇ× | ÀǰßÁ¦½Ã
[Áú¹®] /var/lock/subsys/ ¿¡ ÀÖ´Â ÆÄÀÏ ?

 
±Û ¾²±â   ´äº¯ ´Þ±â    Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ °Ô½ÃÆÇ À妽º -> ½Ã½ºÅÛ ¼³Ä¡ ¹× ¿î¿µ
ÀÌÀü ÁÖÁ¦ º¸±â :: ´ÙÀ½ ÁÖÁ¦ º¸±â  
±Û¾´ÀÌ ¸Þ½ÃÁö
³ª±×³×.. ¤Ð,¤Ð
¼Õ´Ô





¿Ã¸®±â¿Ã·ÁÁü: 2004.9.13 ¿ù, 10:15 pm    ÁÖÁ¦: [Áú¹®] /var/lock/subsys/ ¿¡ ÀÖ´Â ÆÄÀÏ ? Àοë°ú ÇÔ²² ´äº¯ ±Û ÆíÁý/»èÁ¦

/var/lock/subsys/ À̵ð·ºÅ丮ÀÇ ¿ëµµ°¡ ±Ã±ÝÇÕ´Ï´Ù.

µ¥¸óµé ½ºÅ©¸³Æ® º¸¸é µ¥¸ó ½ÃÀ۽à À̵ð·ºÅ丮¿¡ µ¥¸óÀ̸§À¸·Î Å©±â°¡ 0ÀÎ ÆÄÀÏÀ» »ý¼ºÇϰí,
Á×À϶§´Â ¾ø¾Öµµ·Ï µÇ¾î ÀÖ´øµ¥¿ä..

rc.local ÆÄÀÏ¿¡µµ touch /var/lock/subsys/local ÀÌ·¸°Ô µÇ¾î Àִµ¥¿ä..

ÀúÆÄÀÏ ¾ø¾îµµ µ¥¸óµé Àß¶ß´øµ¥¿ä... ¿Ö±×·±Áö ¾Æ½Ã´ÂºÐÀº ¾Ë·ÁÁÖ¼ÌÀ¸¸é ÇÕ´Ï´Ù.

ÁÁÀº ÇÏ·ç º¸³»½Ã±¸.. ÀÐÀ¸½Ã´À¶ó ¼ö°íÇϼ̽À´Ï´Ù..

±×·³ ¼ö°íÇϼ¼¿ä...
À§·Î
yasu
Ä«Æä °ü¸®ÀÚ


°¡ÀÔ: 2004³â 2¿ù 10ÀÏ
¿Ã¸° ±Û: 73

¿Ã¸®±â¿Ã·ÁÁü: 2004.9.15 ¼ö, 11:22 pm    ÁÖÁ¦: Re: /var/lock/subsys/ ¿¡ ÀÖ´Â ÆÄÀÏ ? Àοë°ú ÇÔ²² ´äº¯

´ë´ÜÇϽó׿©..±×·¯ÇÑ Àǹ®À» °¡Áö°í °è½Ã´Ù´Ï..ÀåÂ÷ ±¸·ç°¡ µÇ½Ç°Å °°½À´Ï´Ù.

Àúµµ ´ÔÀÇ ¸»À» µè°í º¸´Ï Àǹ®ÀÌ »ý±â³×¿©..
# rpm -qf /var/lock/subsys
filesystem-2.1.6-2

ÆÐŰÁö´Â filesystem ÆÐŰÁöÀÇ ÀϺÎÀΰɷΠº¸À̴µ¥, ±× ±¸Ã¼ÀûÀ롂 ¾Æ¹«·¡µµ Ä¿³Î°ú °ü·ÃµÇ¾îÀÖÁö ¾ÊÀ»±î ½Í½À´Ï´Ù .-.-

»ó¼¼ÇÑ ³»¿ëÀ» ¾Æ½Ã°ÔµÇ¸é Àúµµ ¾Ë·ÁÁÖ¼¼¿ä~ ^^
À§·Î
»ç¿ëÀÚ Á¤º¸ º¸±â ºñ¹Ð ¸Þ½ÃÁö º¸³»±â
°øÆ÷ź
¼Õ´Ô





¿Ã¸®±â¿Ã·ÁÁü: 2004.11.16 È­, 9:10 am    ÁÖÁ¦: Àúµµ yum À» »ç¿ëÇÏ´Ù°¡ subsys ÀÇ ÆÄÀϵéÀÌ ±Ã±ÝÇØ¼­~ Àοë°ú ÇÔ²² ´äº¯ ±Û ÆíÁý/»èÁ¦

±¸±Û¿¡°Ô µµ¿ò¿äûÀ» ÇØº¸¾Ò´Âµ¥¿ä ¾Æ·¡¿Í °°Àº °Ë»öµÇ¾ù³×¿ä

¾Æ·¡´Â ¿ø¹®À̱¸¿ä Á¦ ªÀº ¿µ¾î ½Ç·ÂÀ¸·Î Çٽɸ¸ ÇØ¼®ÇØ º¸¸é
init ¿¡¼­ ÇÁ·Î¼¼¼­ »ý¼º½Ã¿¡ subsys filesµéÀ» »ý¼ºÇϰí
init ÀÌ shutdown ½Ã¿¡ subsys files Ç׸ñµé¿¡ ´ëÇØ¼­ ÇÁ·Î¼¼½º Á¾·á¸¦ ¼öÇàÇÑ´Ù´Â °Í °°½À´Ï´Ù ¤Ñ.¤Ñ;

»ç¿ëÀÚ°¡ ¼öµ¿À¸·Î ÇÁ·Î¼¼¼­¸¦ ½ÇÇàÇϸé pid °ª¸¸ »õ¼ºµÇ´Ï±î¿ä
initÀº ½Ã½ºÅÛ Á¾·á½Ã¿¡ »ç¿ëÀÚ°¡ ½ÇÇàÇѰÍÀº ÀÚµ¿À¸·Î Á¾·á ½ÃŰÁö ¾Ê°ÙÁÒ~
initÀÌ ¼öÇàÇѰÍÀº initÀÌ ¾Ë¾Æ¼­ ²ø¼ö ÀÖ°Ô²û ÇØÁÖ´Â ¿ªÈ°À» ÇÏ´Â °Í °°½À´Ï´Ù.

¸Â´ÂÁö ¸ð¸£°Ù³×¿ä~¤Ñ.¤Ñ;


===============================================
I believe that the difference is determining whether the program was
started by the init script or not. After all, the pid file is under
control of the program itself, and is not cleaned. Using the RH service
program to run the init script is a controlled startup/shutdown which is
reflected by the subsys files. Manually starting the process is
uncontrolled, but will result in a pid file if the program creates it.


Therefore,

if subsys lock file exists
process was at some point started by init script else
process may have been started manually, check for pid file if pid
file exists, check for existance of process

None of which is entirely watertight, as neither the existance of a
subsys lock file nor a pid file is a guarantee that the process is
actually running.


The subsys lock file should, when shutting down the machine, cause the
init script to try to stop the process, on the basis that it started it
in the first place, however a cursory look suggests that largely no such
checks are made, except in the killall script which is the sweeper at
the end of the shutdown process.
À§·Î
ÀÌÀü ±Û Ç¥½Ã:   
±Û ¾²±â   ´äº¯ ´Þ±â    Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ °Ô½ÃÆÇ À妽º -> ½Ã½ºÅÛ ¼³Ä¡ ¹× ¿î¿µ ½Ã°£´ë: GMT + 9 ½Ã°£(Çѱ¹)
ÆäÀÌÁö 1 Áß 1

 
°Ç³Ê¶Ù±â:  
»õ·Î¿î ÁÖÁ¦¸¦ ¿Ã¸± ¼ö ¾ø½À´Ï´Ù
´ä±ÛÀ» ¿Ã¸± ¼ö ¾ø½À´Ï´Ù
ÁÖÁ¦¸¦ ¼öÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù
¿Ã¸° ±ÛÀ» »èÁ¦ÇÒ ¼ö ¾ø½À´Ï´Ù
ÅõÇ¥¸¦ ÇÒ ¼ö ¾ø½À´Ï´Ù


Powered by phpBB © 2001, 2005 phpBB Group