You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
node.js ãªãµã¼ããã¼ã¢ã³ã®ç®¡çããããã¨æããä½ã使ãããæ¤è¨ãã¦ããã®ã§ããããã®æã®ããã¡ã¯ãã¹ã¿ã³ãã¼ãã§ãã daemontools ã¯ãç¹å®ã®ãã£ã¬ã¯ããªæ§é ã«å¾ããªãã¨ãããªãã£ãããrun ã¹ã¯ãªããã log/run ã¹ã¯ãªãããç½®ãããããããããªãã£ããã§ãä½è¨ãªä½æ¥ãå¤ãã¦ãæ軽ãããªããã£ã¦ãã¨ã§ runit ãè¦ã¦ã¿ããã§ãããã±ã£ã¨è¦ daemontools ã¨ã®éããããããããªãã¦ãdaemontools ã¨ããã»ã©ç ©éãã¯å¤ãããªãããã«è¦ããã®ã§ããã£ã¨ãæ軽ãªãã®ããªããã¨æ¢ãã¦ããã¨ããè¦ã¤ããã®ã Supervisor ãï¼ã¨ãã£ã¦ãèªåãç¥ããªãã£ãã ãã§ä»¥åããããã¿ããã§ãããï¼ Python 製㧠easy_install ä¸çºã§ã¤ã³ã¹ãã¼ã«ã§ããã $ sudo easy_install supervisor ããã©ã«ãã®è¨å®ã
æ¢åºãããããªãããã©ãã¡ã¢ã perlbrew ã§æ§ç¯ããç°å¢ã§ /usr/bin/perl 㨠~/perl5 ã®ãã¼ã¸ã§ã³ãéãå ´å run ã¹ã¯ãªããã§ç°å¢å¤æ°ã export ãã¦ãããªã㨠perlbrew ã®å©ç¹ãæ´»ãããããªããã¡ãªã¿ã« bash ãä¸å¿ã«æ±ã£ã¦ããã®ã§ãèªåã®ç°å¢ã«åããã¦èªã¿æ¿ãã¦ãã ããã run ã«ã©ãæ¸ãã perlbrew init ããã¨ãã« ~/.bashrc ã«è¿½è¨ãã source ã®è¡ãããã¯ããªã®ã§ããã辿ã£ã¦ export ã run ã«ã³ãããã¦ããã°ããã æå ã®ç°å¢ã§ã¯ $ cat ./bashrc ..snip... if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi source /home/puny/perl5/perlbrew/etc/bashr
2009-12-15 è¿½è¨ nginxã®ãªãã·ã§ã³ãééã£ã¦ãã®ã§ä¿®æ£ï¼ï¼ à -g daemon=off â -g "daemon off;" 2009-12-16 è¿½è¨ Apacheã®runãã¡ã¤ã«ã«pgrphackã¨è£è¶³æã追å ã daemontoolsã®runãã¡ã¤ã«ã Apache #!/bin/sh exec 2>&1 CONF=/usr/irori/etc/apache/httpd.conf DAEMON=/usr/local/app/apache/bin/httpd DAEMON_ARGS="-f $CONF -DNO_DETACH -DFOREGROUND" if [ ! -x "$DAEMON" ]; then echo "not executable: $DAEMON" exit 1 fi if ! $DAEMON $DAEMON_ARGS -t; then echo
qmail ã®ãã°ã daemontool çµç±ã«ããæ¹æ³ ã¾ãã¯ãqmail 1.03 å ã® FAQ ããã¹ãã® 7.7 é ãã¿ããã¡ããã£ã¨æ å ±ãè¨è¼ããã¦ãã¾ãã 7.7. How do I avoid syslog? It chews up a lot of CPU time and isn't reliable. Answer: Install daemontools (http://pobox.com/~djb/daemontools.html). Make a /var/log/qmail directory, owned by qmaill, mode 2700. Do qmail-start ./Mailbox /usr/local/bin/accustamp \ | setuser qmaill /usr/local/bin/cyclog /var/log/qmail
Created by paolo. Last edited by paolo, one year and 228 days ago. Viewed 2,038 times. #8 daemontools is a collection of tools for managing UNIX services written by the mathematician and celebrated crytographer Daniel J. Bernstein. The most prominent tools in the daemontools collection are:a) supervise. This tool monitors a service. It starts the service and restarts the service if it dies. Settin
ç¯ççå¼åæ¥è®°keepalived+drbd+daemonotoolsã使ã£ã¦hadoopã®HAæ¹æ¡ ã·ã¹ãã æ§æ ãµã¼ãäºå° ãããã¯ã¼ã¯éä¿¡ç¨ã¤ã³ã¿ãã§ã¼ã¹ï¼eth1 ãããããnode1ã¨node2ãå¼ã°ãã 使ããã®ï¼ keepalivedã®viipæ©è½ã§ä»®æ³IPãèªåçã«åãæ¿ã drbdã§äºå°ãµã¼ãã®éã«ãã£ã¹ã¯ãåæåãã daemontoolsã§hadoopã®ãã¹ã¿ãµã¼ãã®ããã»ã¹ã¨keepalivedã¨drbdãµã¼ãã¹ã®ç¶æ ãç£è¦ããè½ã¡ã ããç«ã¡ç´ãã¦ããã ä¸ãkeepalivedã®è¨ç½® ï¼ãå¿ è¦ãªãã®ããã§ãã¯ã¨ã¤ã³ã¹ãã¼ã« openssl openssl-devel poptããã±ã¼ã¸ãå¿ è¦ãªã®ã§ããã§ãã¯ããçµæãè¦ã¦ãåå¨ããªããªããã¤ã³ã¹ãã¼ã«ãã [root@super03 ~]#yum install openssl openssl-devel popt
NAME daemontools-plack-runner - Shell Script To Bootstrap Plack Apps From Daemontools DESCRIPTION Generic run file to execute plack with daemontools ASSUMPTIONS * ALL perl dependencies are available via a local::lib directory (default extlib) * Requires daemontools (duh) * Requires Plack (duh) * Requires local::lib In many cases, local::lib MUST BE INSTALLED GLOBALLY, NOT your ~/perl5. If in doubt
Plack/Starman Daemontools Run File With Complete Deploy Bundle 注ï¼ï¼ã¾ã æ¬çªã«ã¯ãããã¤ãã¦ã¾ãããããã¹ãã§ã¯ä½¿ãã¾ããã 注ï¼ï¼ä»¥ä¸ã¹ã¯ãªããã¯éçºè ã®å´åãæ¸ããããã®ã¹ã¯ãªããã§ãä¸å ¨ãªãããã¤æ¹æ³ã ã¨ãè¨ãããã§ã¯ããã¾ããã 注ï¼ï¼æ£ç´ã·ã§ã«ã¹ã¯ãªããã¯ç´ 人ã§ãã ããæè¿ã®ã¢ããªã±ã¼ã·ã§ã³ã®ãã³ãã«ã»ãããã¤ã«ã¤ãã¦ã¡ãã£ã¨åºã¾ãã¤ã¤ããã®ã§ãæ¸ãã¦ã¿ã ã¾ã ã¢ããªã±ã¼ã·ã§ã³ã¨ããã®ä¾åé¢ä¿ããããã¤å´ã®ãµã¼ãã¼ã«ã¯local::libã¨å¿ è¦ãªModule::Installç³»ã®ã¢ã¸ã¥ã¼ã«ãããã«Module::Install::Bundle::LocalLibãã¤ã³ã¹ãã¼ã«ããã¦ããåæã§ããã¢ããªã±ã¼ã·ã§ã³ã®ä¾åé¢ä¿ã¯å ¨é¨Makefile.PLã«æ¸ãã¾ãã use inc::Module::Install;
ã ãã¶æã«ãªãã§ããªã¼ãªãã§ã ãã¼ãªã¼ã¨æã£ããã¨: dnscache-confã§ä½ã£ãrunãã¡ã¤ã«ãã #!/bin/sh exec 2>&1 exec <seed exec envdir ./env \ envuidgid dnscache softlimit -o250 -d "$DATALIMIT" /usr/local/bin/dnscache ãããªãã¦ããããªãµãã«ã #!/bin/sh exec 2>&1 exec <seed exec envdir ./env sh -c ' exec envuidgid dnscache softlimit -o250 -d "$DATALIMIT" /usr/local/bin/dnscache ' ããããshãexecãã¦ããã®shã®ãªãã§ãç®å½ã¦ã®ããã°ã©ã ãèµ·åãã¦ããã¨ã ã§ãä»æ¥ãæIRCãã£ã³ãã«ã¿ã¦ã¦æ°ãã¤ãããã§ã
[daemontools][djb] Tips Collection - daemontools http://quox.org/tips/server/daemontools.html daemontools HOW-TO (αç) http://www.emaillab.org/djb/daemontools/daemontools-howto.html runit - collection of run scripts http://smarden.org/runit/runscripts.html apache2 apache2 in foreground(ä¿®æ£ç) http://www.gentei.org/~yuuji/rec/pc/memo/2003/02/12/ apache2/run #!/bin/sh exec 2>&1 exec softlimit -c 0 envd
_ djb ãèªä½ãã¼ã«ã®æ´æ°ãæ¾æ£ãã¦ããããã¶ããã£ã¦ãqmail ãã djbdns ããã¯ãã£ããã¨ç½®ãæ¿ããé²ãã§ããããã ããããã¾ã ã«ä½¿ãç¶ãããã¦ãããã®ããããå ·ä½çã«ã¯ daemontoolsããã¾ã ã« daemontools ã 使ããã¿ãæ¸ããã¦ããã®ãè¦ã¦çµ¶æããã代æ¿ç©ã¯ã»ãã«ãããã®ã«ã (ä¸ç¥) _ ãããªããã§ãããã®ãã¨ã anti djb ã ã¨æã£ã¦ããä¸é¨ã®æ¹ã ã飽ãã¦çææä¸ãæãã§ãããããªå£°ãã ãã¶åã«ã©ã£ã(ã©ãã ãå¿ãã)ã§è¦ãããã®ã§ãè¦æã«çãã¦è¥å¹² djb ã dis ãæ°å³ã« runit 㨠ipsvd ã解説ãã¦ã¿ã¾ããããããå¥ã«ããããã®ã使ããã¨ããã ãã§ãdjb ãå«ããªããã§ããªãã§ããªããã ãã©ããã¡ãªã¿ã«ãèªåèªèº«ã§ã¯å¥½ãå«ã以åã«å¿ è¦æ§ãæãã¦ãªãã®ã§ä½¿ã£ã¦ããã¾ãã¬(ããæ¸ãããã«ä½å¹´ãã¶ãã«ã¤ã³ã¹ãã¼ã«ãã)ã
èªä½ã®ãµã¼ãããã°ã©ã ã«ããã¡ãã¡ 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
cron ã®ãããå¦çã®å®è¡é åºãå¶å¾¡ããã¨ãã¯ãsetlock ã使ãã¨ä¾¿å©ããã ã£ãã®ã§ãè¨å®ãã¦ã¿ãããã®æ¹æ³ã§ã¯ãsetlock ã« setlock ãè¨å®ãã¦ããçç±ãããåãããªãã£ãã®ã§ãä½ã¯ã¨ããã試ãã¦ã¿ãã setlock ã«ã¤ãã¦ã®ãã«ãã¯ããã¡ãã ã¾ããdaemontools ã® RPM ã¯ãdaemontools.spec ã使ãã¨ããã«ä½ããã¨ãã§ãããdaemontools ã¯ã/usr/local/bin ã«ã¤ã³ã¹ãã¼ã«ãããã 次ã«ããããå¦çã«è¦ç«ã¦ãç°¡åãªæ¬¡ã®ããã°ã©ã ãæºåããã 1.rb: ä¸çªæåã«å®è¡ãããæ¯æããã #!/usr/bin/env ruby require âdateâ p â#{__FILE__} start #{DateTime.now}â sleep 120 p â#{__FILE__} end #{DateTime.n
Google ã§æ¤ç´¢ãã¦ãããã¾ã解説ãè¦ãããªãã£ãã®ã§ãããã£ã¨ã¡ã¢ãæ®ãã¾ãã åææ¡ä»¶ ãã®ãããããRPM ã§ã¤ã³ã¹ãã¼ã«æ¸ã¿ã§ããã¨ä»®å®ãï¼daemontoolsãfunctionsãrunlevelconfãdt-run ãã¤ã³ã¹ãã¼ã«æ¸ã¿ã§ãsvscan ã /service é ä¸ãç£è¦ä¸ã¨ããç¶æ ï¼ ãµã¼ãã¹ç¨ã®ãã£ã¬ã¯ããªããã¡ã¤ã«ãä½æ % tree -pug /var/service/sample /var/service/sample |-- [drwxr-sr-x log_user log_user] log | `-- [-rwxr-xr-x log_user log_user] run `-- [-rwxr-xr-x root root ] run 1 directory, 2 filessampleãsample/log ãã£ã¬ã¯ããªå ±ã«ããã¼ããã·ã§ã³ã
Flash Media ServerãRED5ã æè¿ã¤ãã£ããµã¼ãã¹eãã¢ãããã£ããããããã¦ã¹ããã©ã¼ã¯å ¨é¨ããã®red5ã§åããã¦ã¾ãã ã¡ãªã¿ã«ãOSã¯Linuxäºæã®CentOSãã°ã¼ã ãã ãªããããµã¨æ°ä»ãã¨æ»ãã§ãred5ãµã¼ãã軽ãï¼âï¼æ¥ã«ï¼åã¯ãã¤ã®éã«ãæ»ãã§ãæ°ãããï½ ããã§ããã»ã¹ãèªå復帰ãããããã®æ¹æ³ãã¡ã¢ã¡ã¢ã ã¡ãªã¿ã«ãdaemontoolsã£ã¦ãåä½ããã·ã¹ãã ã®è¦ä»¶ã« ãdaemontools 㯠UNIXã§ã ãåä½ãã¾ããã¨ãã²ã³ããªãªäºæ¸ãã¦ããããlinuxã§åããªãã®ããªã¼ã ã¨ãæã£ã¦ããã©ãæ®éã«CentOS linuxãµãã¼ã§ãåããã®ã§æé ãæ¸ãã¦ãããã( ^Ï^ )ï¾ï½ºï¾ï½º daemontoolsã®ãããã âï¼ï¼wget wget http://tools.qmail.jp/daemontools/daemontools-
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}