D. J. Bernstein UNIX daemontools setlock ããã°ã©ã setlock ã¯ãã¡ã¤ã«ãããã¯ãã¦å¥ã®ããã°ã©ã ãèµ·åããã¾ãã 使ãæ¹ setlock opts fn child opts 㯠getopt å½¢å¼ã®ãªãã·ã§ã³é¡ã§ãã fn ã¯ä¸ã¤ã®å¼æ°ã§ãã child ã¯ä¸ã¤ä»¥ä¸ã®å¼æ°ããæãã¾ãã setlock ã¯æ¸ãè¾¼ã¿ç¨ã« fn ãéãï¼åå¨ããªããã°ä½æãã¦ï¼ãæä»ããã¯ãé©å¿ããchild ãèµ·åããã¾ãã é常ãchild ãçµäºããã¨ãã«ããã¯ã¯è§£é¤ããã¾ãã å®å ¨ãªè©±ãæ¸ãã¨: child ã¯ãã£ã¹ã¯ãã¡ã¤ã« fn ã示ãã¦ããããã¯ããã ofile ç¨ã®è¨è¿°åãä¸ãããã¾ãã ãã® ofile ã次ã®ã©ã¡ããã«ãªã£ãã¨ãã«ããã¯ã¯è§£é¤ããã¾ã: ãã®è¨è¿°åãæã£ã¦ããå ¨ã¦ã®ããã»ã¹ã«ãã£ã¦éããããã¨ã ã¯ã£ããã¨ããã¯ã解é¤ãã
node.js ãªãµã¼ããã¼ã¢ã³ã®ç®¡çããããã¨æããä½ã使ãããæ¤è¨ãã¦ããã®ã§ããããã®æã®ããã¡ã¯ãã¹ã¿ã³ãã¼ãã§ãã daemontools ã¯ãç¹å®ã®ãã£ã¬ã¯ããªæ§é ã«å¾ããªãã¨ãããªãã£ãããrun ã¹ã¯ãªããã log/run ã¹ã¯ãªãããç½®ãããããããããªãã£ããã§ãä½è¨ãªä½æ¥ãå¤ãã¦ãæ軽ãããªããã£ã¦ãã¨ã§ runit ãè¦ã¦ã¿ããã§ãããã±ã£ã¨è¦ daemontools ã¨ã®éããããããããªãã¦ãdaemontools ã¨ããã»ã©ç ©éãã¯å¤ãããªãããã«è¦ããã®ã§ããã£ã¨ãæ軽ãªãã®ããªããã¨æ¢ãã¦ããã¨ããè¦ã¤ããã®ã Supervisor ãï¼ã¨ãã£ã¦ãèªåãç¥ããªãã£ãã ãã§ä»¥åããããã¿ããã§ãããï¼ Python 製㧠easy_install ä¸çºã§ã¤ã³ã¹ãã¼ã«ã§ããã $ sudo easy_install supervisor ããã©ã«ãã®è¨å®ã
D. J. Bernstein UNIX daemontools How to install daemontools Upgrading from previous versions of daemontools Frequently asked questions How to start daemontools The svscanboot program The svscan program The supervise program The svc program The svok program The svstat program The fghack program The pgrphack program The readproctitle program The multilog program The tai64n program The tai64nlocal pr
èªä½ã®ãµã¼ãããã°ã©ã ã«ããã¡ãã¡ setuid ã¨ã setsid ã¨ããã°ãã¼ãã¼ãæ©è½ã¨ãå®è£ ããã®ããã©ãããããã§ãã ãã daemontools ã使ã£ã¦ç®¡çãã¦ãããã§ãããã ã£ããããã£ãå ¨é¨ã®ãã¼ã¢ã³ã daemontools ã§ä¸æ¬ç®¡çãããã ã¡ããã©ãreverse proxy ãã»ããã¢ããããæ©ä¼ããã£ãã®ã§ãapache ã daemontools ã§ç®¡çããæ¹æ³ãåå¿é²ãããã¦ã¡ã¢ã % cat /service/httpd/run #!/bin/sh APACHE_ROOT=/usr/local/apache-2.2.14 exec 2>&1 exec pgrphack $APACHE_ROOT/bin/httpd -DNO_DETACH -DFOREGROUND -c "ErrorLog /dev/fd/1" -c "Include /var/httpd
2005/11/28 ãµã¤ãªã³ã³ãã¥ãã±ã¼ã·ã§ã³ãºæ ªå¼ä¼ç¤¾ 大å æºå 1ï¼ã¯ããã« çããã¯ãWebãµã¼ãã¹ãçªç¶åæ¢ãã¦ãã¾ã£ãï¼ããªã©ã®çµé¨ã¯ããã¾ãããï¼ ä»åã¯ãããªæã®çºã®ãµã¼ãã¹(ãã¼ã¢ã³)ã®ç®¡çãã¼ã«ãdaemontoolsãã®ç´¹ä»ãè´ãã¾ãã ãdaemontoolsãã¯ã常ã«ãµã¼ãã¹ã®ç£è¦ãè¡ãä½ããã®åå ã«ããç°å¸¸åæ¢ããå ´åã«ã¯ãèªåçã«åèµ·åãã便å©ãªæ©è½ãæãã¦ãããé害çºçæã«é·æéãµã¼ãã¹ãåæ¢ããç¶æ ãé²ããã¨ãã§ãã¾ãã 2ï¼ãã·ã³ç°å¢ ä»åãè¨å®ãããã·ã³ç°å¢ã¯æ¬¡ã®ã¨ããã§ãã 3ï¼ãdaemontoolsãã®è¨å®ã¨èµ·å 3.1 daemontoolsã®ã¤ã³ã¹ãã¼ã« portã«ã¦daemontoolsãã¤ã³ã¹ãã¼ã« # cd /usr/ports/sysutils/daemontools/ # make # make install # make
ï¼ IT ä¼è°å®¤ Indexãªã³ã¯ Windows Server Insider Insider.NET System Insider XML & SOA Linux Square Master of IP Network Java Solution Security & Trust Database Expert RFIDï¼IC ãªããã¯ã©ã¤ã¢ã³ã & 帳票 Server ï¼ Storage Coding Edge ï¼ ITã¯ã©ã Cafe VBæ¥åã¢ããªã±ã¼ã·ã§ã³éçºç 究 ï¼ IT SpecialPR
back ãã®ããã¥ã¡ã³ã㯠daemontools ã®åºæ¬çãªä»çµã¿ã解説ããç®çã§æ¸ãã¾ããã 以ä¸ã®æ¡ä»¶ã«ãã¦ã¾ã¯ã人ãªãããã®æç« ããã£ããããç解ã§ãã¾ã: ã·ã¹ãã 管çè ã§ããã ã·ã§ã«ã¹ã¯ãªãããæ¸ããã 親ããã»ã¹ã¨åããã»ã¹ãã·ã°ãã«ãªã©ã®æ¦å¿µãç解ãã¦ããã 管çãã¦ããã·ã¹ãã ã§ãã©ããªãµã¼ãã¹ãè¡ããã¦ãããææ¡ãã¦ããã 管çãã¦ããã·ã¹ãã ã®èµ·åããã»ã¹ (/etc/rc çã®å 容) ãç解ãã¦ããã ã·ã¹ãã ããªã«ããµã¼ãã¹ããå¿ è¦ãããããªã«ãããå¿ è¦ããªãã®ãã ã¯ã£ããç解ãã¦ããã qmail ã djbdns ã使ã£ã¦ããã é¢é£ãªã³ã¯ djb èªèº«ã«ãã daemontools FAQ ã®ç¿»è¨³: daemontools FAQ, åéããç 詳ããã¤ã³ã¹ãã¼ã«æ¹æ³ããªãã¡ã¬ã³ã¹ããã¥ã¢ã« (æ»æ²¢ãã): daemontools HOW-TO dae
http://quox.org/tips/server/daemontools.html [ Top > Tips Collection > daemontools ] daemontoolsã¯ãã¼ã¢ã³ãå¶å¾¡ããããã®ãã¼ã«ç¾¤ã§ãããæå®ããã1ã¤ã® ãã¼ã¢ã³ãç£è¦ããsuperviseãè¤æ°ã®superviseã管çããsvscanã superviseã«æ示ãä¸ããããã®ã³ãã³ãã¤ã³ã¿ãã§ã¼ã¹svcããã°åéãè¡ ãmultilogãªã©ããæ§æããã¦ããã svscanããã³superviseã¯ããã¼ã¢ã³ã®èµ·åå¶å¾¡ãè¡ããèµ·åãããã¼ã¢ã³ã® ç¶æ ãç£è¦ããä½ããã®ä¸æ¸¬ã®åå ã§ãã¼ã¢ã³ãåæ¢ããå ´åã«ã¯èªåçã« åéããããã¾ããæ°ãã«ç»é²ããããã¼ã¢ã³ãããã°ãããç´ã¡ã«èµ·åã ã: svscanãsuperviseã«å¯¾ãã¦æ示çã«æ令ãä¸ããå¿ è¦ã¯ãªãã ãã¼ã¢ã³ãç»é²ããããã«ã¯ã
daemontools 㯠qmail ã®ä½è D.J.B. ã«ãããã¼ã«ç¾¤ã®ã²ã¨ã¤ã§ãã daemontools ã¨ã¯ daemontools ã¨ã¯ããã¼ã¢ã³ãç£è¦ãããã¼ã«ã®ãã¨ã§ãã ãã¼ã¢ã³ãä¸æã«ã¹ãããããã¨ããããã¯æ¢ã¾ã£ãã¾ã¾ã«ãªãã¾ãã ããã daemontools ã«ãã£ã¦ç£è¦ããã¦ããã°ã èªåçã«åèµ·åãã¦ããã¾ãã ã¾ããç£è¦ã®ããã®ãã£ã¬ã¯ããªãä½æããã®ã§ã ãã¼ã¢ã³ç®¡çãä¸å åããããªã©ã®å©ç¹ãããã¾ãã å ·ä½çã«ã¯ svscan ã¨ããããã°ã©ã ãåãµã¼ãã¹ã run (åååºå®)ã¨ããã¹ã¯ãªããã§èµ·åãã¾ãã 注æäºé ã¯æ¬¡ã®éãã§ãã ããã¯ã°ã©ã¦ã³ãã«ãªããã¼ã¢ã³ã¯ç®¡çã§ãã¾ããã ä¸ã®ãããrun ã§èµ°ãããããã»ã¹ã¯ã & ãä»ãã¦ããã¯ã°ã©ã¦ã³ãã«ãã¦ã¯ããã¾ãã ã¤ã³ã¹ãã¼ã« ports ã§ã¤ã³ã¹ãã¼ã«ã§ãã¾ãã FreeBSD 4.8-RE
ã¨ããããï¼ä»¥ä¸ã®ãããªæãã§ï¼ $ wget -nd http://www.qmailtoaster.com/download/stable/daemontools-toaster-0.76-1.3.6.src.rpm $ rpmbuild --rebuild daemontools-toaster-0.76-1.3.6.src.rpm $ rpm -Uvh daemontools-toaster-0.76-1.3.6.x86_64.rpm $ wget -nd http://www.emaillab.org/djb/daemontools/svscan $ sudo mv svscan /etc/init.d/ $ sudo chmod +x /etc/init.d/svscan $ sudo /sbin/chkconfig --add svscan $ sudo /sbin/chkc
åæ¸ã ãã®ææ¸ã¯ DJB æ°ã® daemontools ããã±ã¼ã¸ã«èå³ãæãããæ¹ãããããå°å ¥ã»éç¨ãè¡ããã¨ããæ¹ã«åãã¦æ¸ããããã®ã§ããdaemontools ããã±ã¼ã¸ã®æ¦è¦ãå°å ¥ã»è¨å®æ¹æ³ã使ç¨ä¾ãªã©ãã¾ã¨ãã¦ãã¾ããããããåãã¼ã«ã詳細ã«èª¬æãããã®ã§ã¯ããã¾ããããã®ããããã®ææ¸ãèªãã å¾ã«ãããã¥ã¢ã«*1 ãèªãã§ãã ãããæ¥æ¬èªè¨³*2ãããã¾ãã ã¾ããæ°å±±ããã® daemontools FAQ*3ãããã¾ãã®ã§ãã¡ããã覧ä¸ããã è¨»è¨ *1) "daemontools" http://cr.yp.to/damontools.html *2) "daemontools(æ¥æ¬èªè¨³)" http://www.emaillab.org/djb/tools/daemontools/top.html *3) "daemontools FAQ" http://tanaka
2004.11.21æ°è¦ä½æã 2005.9.4æ´æ°ã daemontoolsã¯ããµã¼ãã¹ï¼ãã¼ã¢ã³ï¼ãèµ·åãããç¶æ³ã確èªãããã¼ã«ããµã¼ãã¹ãçµ±ä¸çã«æ±ããã¨ãã§ããã ã¤ã³ã¹ãã¼ã« daemontoolsã¯ãä¸è¨ããå ¥æã§ããã daemontools ã¾ãã¯ã¢ã¼ã«ã¤ããå±éãããçµæ§ä¸æè°ãªãã£ã¬ã¯ããªæ§æã«ãªã£ã¦ãããã¾ããã³ã³ãã¤ã«ãã¤ã³ã¹ãã¼ã«æ¹æ³ãä¸é¢¨å¤ãã£ã¦ããã å±éããã¨ã次ã®ãããªãã£ã¬ã¯ããªæ§æã«ãªã£ã¦ããã admin/daemontools-0.76/package /src ã¨ããããå±éãã¦ããã£ã¬ã¯ããªæ§æã調æ´ããã /opt/src$ tar xzvf daemontools-0.76.tar.gz /opt/src$ mv admin/daemontools-0.76 . /opt/src$ rmdir admin ãªãªã¸ãã«ãã®ã¾ã¾ã§ã¯ã³ã³ãã¤ã«
daemontoolsï¼ã§ã¼ããã¤ã¼ããï¼ã¯ãããã¨ã«ã»ãã¼ã³ã¹ã¿ã¤ã³ã«ãã£ã¦éçºããããUnixç³»OSã«ããããµã¼ãã¹ç®¡çã®ããã®ãã¼ã«ã®ããã±ã¼ã¸ã§ãããUnixç³»OSã«ããããrc.dãrc.localãinittab ãªã©ã®initã®ä»£æ¿ã¨ãã¦ãã¼ã¢ã³ãèµ·åããããã¨ãã§ããã2007å¹´11æãããããªãã¯ãã¡ã¤ã³ã¨ãªã£ãã æ¦è¦[ç·¨é] daemontools ã¯ãUnixç³»OSã«ããããµã¼ãã¹ã®ç®¡çä½æ¥(ããã»ã¹ç£è¦ããã®ã³ã°ãªã©)ãã·ã³ãã«ãªææ³ã§è¡ãããã®æ¯æ´ãã¼ã«ã§ããããã¨ãã°ãsupervise ã¨ããããã°ã©ã ã¯ããã©ã¢ã°ã©ã¦ã³ãèµ·åããããã¼ã¢ã³ããã»ã¹ã®ç£è¦ãè¡ããmultilog ã¨ããããã°ã©ã ã¯ããã¤ãçµç±ã§åããã¼ããªããã°ã®è¨é²ãã§ãããdaemontools ã«ããã¦ã¯ ã¹ã¼ãã¼ã¦ã¼ã¶ã¼æ¨©éã®çµãè¾¼ã¿ãè¡ããããããããã»ãã¥ã¢ãªéç¨ãå¯è½ã§ããã
Plack/Starman Daemontools Run File With Complete Deploy Bundle 注ï¼ï¼ã¾ã æ¬çªã«ã¯ãããã¤ãã¦ã¾ãããããã¹ãã§ã¯ä½¿ãã¾ããã 注ï¼ï¼ä»¥ä¸ã¹ã¯ãªããã¯éçºè ã®å´åãæ¸ããããã®ã¹ã¯ãªããã§ãä¸å ¨ãªãããã¤æ¹æ³ã ã¨ãè¨ãããã§ã¯ããã¾ããã 注ï¼ï¼æ£ç´ã·ã§ã«ã¹ã¯ãªããã¯ç´ 人ã§ãã ããæè¿ã®ã¢ããªã±ã¼ã·ã§ã³ã®ãã³ãã«ã»ãããã¤ã«ã¤ãã¦ã¡ãã£ã¨åºã¾ãã¤ã¤ããã®ã§ãæ¸ãã¦ã¿ã ã¾ã ã¢ããªã±ã¼ã·ã§ã³ã¨ããã®ä¾åé¢ä¿ããããã¤å´ã®ãµã¼ãã¼ã«ã¯local::libã¨å¿ è¦ãªModule::Installç³»ã®ã¢ã¸ã¥ã¼ã«ãããã«Module::Install::Bundle::LocalLibãã¤ã³ã¹ãã¼ã«ããã¦ããåæã§ããã¢ããªã±ã¼ã·ã§ã³ã®ä¾åé¢ä¿ã¯å ¨é¨Makefile.PLã«æ¸ãã¾ãã use inc::Module::Install;
2009å¹´12æ1æ¥(ç«) â freebsd local exploit _ ãªããã¡ã¼ã«ãããã»ãã¥ãªãã£ã¾ããã®ãã¤ãã®ã¢ãã¦ã³ã¹ã¨ã¯ã¾ã£ããéãå½¢å¼ãªãã ãã©ããã exploit code ãåºåã£ã¦ãã®ã§ã¡ããã¨ãã SA ã¯å¾åãã«ãã¦ã¨ãããã ãããåºãããã¨ãããã¨ãããã _ ãã¼ã¨ãä¿®æ£å 容ãè¦ãã¨ãunsetenv(3) ã®è¿ãå¤ããã§ãã¯ãã¦ããªããããå±éºãªç°å¢å¤æ°ãé¤å»ãããã¨ãã¦å¤±æãã¦ããã®ã¾ã¾çªã£èµ°ã£ã¦ãã¾ã£ã¦ LD_PRELOAD ããã³ã¼ããæ³¨å ¥ã§ãã¦ãã¾ããã¨ãããã¨ããªãããã«ããã£ã¦ ld-elf.so.1 ã®ä¸ã ãã _ â¦â¦ããè¿ãå¤ã£ã¦ãªã«ããï¼ unsetenv() ã£ã¦ void ãè¿ãããããªãã®ï¼ _ 調ã¹ã¦ã¿ãã¨ãã©ãããã¡ãã£ã¨å(freebsd 㯠6ãglibc ã 㨠2.2.2)ã¾ã§ã¯ void ã ã£ããã©ãæè¿ã§ã¯æ
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}