rc

å称
     rc — èªåãªãã¼ãå¦çã¨ãã¼ã¢ã³èµ·åã®ããã®ã³ãã³ãã¹ã¯ãªãã

æ¸å¼
     rc rc.conf rc.conf.local rc.d/ rc.firewall rc.local rc.shutdown rc.subr

解説
     rc ã¦ã¼ãã£ãªãã£ã¯ã èªåãã¼ãå¦çãå¶å¾¡ããã³ãã³ãã¹ã¯ãªããã§ã init(8)
     ã«å¼ã°ãã¾ãã rc.local ã¯ç¹å®ãµã¤ãã«ç¹åããã³ãã³ããè¨è¿°ããã¹ã¯ãªããã§ãã
     ä»æ¥ã§ã¯ãå¸åçã«ã¯ /usr/local/etc/rc.d/ ã®æ©æ§ã rc.local
     ã®ä»£ãã«ä½¿ç¨ããã¾ãã ããããªããã rc.local
     ã使ç¨ãããã®ã§ããã°ããã¯ã¾ã ãµãã¼ãããã¦ãã¾ãã ãã®å ´åã rc.local ã /etc/rc.conf
     ãèªã¿åãããã«ãã¦ããã ããªãã®ã·ã¹ãã ç¹æã®æ´ãªãã«ã¹ã¿ã ã¹ã¿ã¼ãã¢ããã³ã¼ãã
     rc.local ã«è¿½å ãã¦ãã ããã rc.local ãæ±ãæè¯ã®æ¹æ³ã¯ãããã rc.d/
     ã¹ã¿ã¤ã«ã®ã¹ã¯ãªããã¨ãã¦åå²ãã¦ããããã /usr/local/etc/rc.d/ ã«ç½®ããã¨ã§ãã
     rc.conf ãã¡ã¤ã«ã¯ã¹ã¿ã¼ãã¢ããã¹ã¯ãªãã群ãã åç§ãããã°ã‐
     ã¼ãã«ãªã·ã¹ãã æ§ææå ±ãæã¡ã rc.conf.local ã¯ã‐
     ã¼ã«ã«ãªã·ã¹ãã æ§ææå ±ãæã¡ã¾ãã æ´ãªãæå ±ã«ã¤ãã¦ã¯ rc.conf(5)
     ãåç§ãã¦ãã ããã

     rc.d/ ãã£ã¬ã¯ããªã¯ããã¼ãæããã³ã·ã£ãããã¦ã³æã« èªåçã«å®è¡ãããã¹ã¯ãªãããä¿æãã¾ãã

   rc ã®åä½
     1.   /etc/rc.subr ãã½ã¼ã¹ããæ§ã㪠rc.subr(8) ã·ã§ã«é¢æ°ã使ããããã«ãã¼ããã¾ãã

     2.   èªåãã¼ãæã«ã¯ã autoboot=yes ãè¨å®ãããã©ã° (rc_fast=yes) ãæå¹ã«ãããã¨ã§
          rc.d/ ã¹ã¯ãªãããæ¢ã«åä½ä¸ã®ããã»ã¹ã®ãã§ãã¯ãããªãããã«ãã¾ã
          (ããã«ãããã¼ãå¦çãé«éåãã¾ã)ã ãã® rc_fast=yes
          ã«ããé«éåã¯ãã·ã³ã°ã«ã¦ã¼ã¶ã·ã§ã«ããæããå¾ã§ rc
          ãèµ·åãããã¨ãã«ã¯ä½¿ç¨ããã¾ããã

     3.   rcorder(8) ãèµ·åãã /etc/rc.d/ ä¸ã®ãã¡ã¤ã«ã§ “nostart” ãã¼ã¯ã¼ã
          (rcorder(8) ã® -s ãã©ã°ãåç§)
          ãæããªããã®ã並ã³æããçµæãããå¤æ°ã«ä»£å¥ãã¾ãã

     4.   (rc.subr(8) ã®) run_rc_script() ã使ç¨ããåã¹ã¯ãªãããé çªã«å¼ã³åºãã¾ãã
          ãã®é¢æ°ã¯ $1 ã “start” ã«è¨å®ãããµãã·ã§ã«ã«ã¦ã¹ã¯ãªãããã½ã¼ã¹ãã¾ãã
          ã¹ã¯ãªããã« .sh
          ãµãã£ãã¯ã¹ãããå ´åãã¹ã¯ãªããã¯ç¾å¨ã®ã·ã§ã«ã«ç´æ¥ã½ã¼ã¹ããã¾ãã

   rc.shutdown ã®åä½
     1.   /etc/rc.subr ãã½ã¼ã¹ããæ§ã㪠rc.subr(8) ã·ã§ã«é¢æ°ã使ããããã«ãã¼ããã¾ãã

     2.   rcorder(8) ãèµ·åãã /etc/rc.d/ ä¸ã®ãã¡ã¤ã«ã§ “shutdown” ãã¼ã¯ã¼ã
          (rcorder(8) ã® -k ãã©ã°ãåç§)
          ãæã¤ãã®ãéé ã«ä¸¦ã³æããçµæãããå¤æ°ã«ä»£å¥ãã¾ãã

     3.   (rc.subr(8) ã®) run_rc_script() ã使ç¨ããåã¹ã¯ãªãããé çªã«å¼ã³åºãã¾ãã
          ãã®é¢æ°ã¯ $1 ã “stop” ã«è¨å®ãããµãã·ã§ã«ã«ã¦ã¹ã¯ãªãããã½ã¼ã¹ãã¾ãã
          ã¹ã¯ãªããã« .sh
          ãµãã£ãã¯ã¹ãããå ´åãã¹ã¯ãªããã¯ç¾å¨ã®ã·ã§ã«ã«ç´æ¥ã½ã¼ã¹ããã¾ãã

   rc.d/ ã®å容
     rc.d/ 㯠/etc/rc.d/ ã«ããã¾ãã 次ã®ãã¡ã¤ã«å½åè¦åãç¾å¨ rc.d/
     ã§ä½¿ç¨ããã¦ãã¾ã:

           ALLUPPERCASE  “ãã¬ã¼ã¹ãã«ã”
                         ã¹ã¯ãªããã§ãããããåä½ãä»ã®åä½ã®åã«å®è¡ããããã¨ãä¿è¨¼ãã¾ãã
                         èµ·åã§ã®é çªã§ã¯æ¬¡ã®ãã®ãããã¾ã:

                         NETWORKING  åºæ¬çãªãããã¯ã¼ã¯ãµã¼ãã¹ãèµ·åãããã¨ãä¿è¨¼ãã¾ãã
                                     ä¸è¬çãªãããã¯ã¼ã¯è¨å® (network1, network2,
                                     network3) ãå«ã¾ãã¾ãã

                         SERVERS     åºæ¬çãªãµã¼ãã¹ (NETWORKING, ppp-user,
                                     syslogd, isdnd ç) ãèµ·åãããã¨ãä¿è¨¼ãã¾ãã
                                     ãããã¯ãæ©æã«éå§ãã (named ãªã©ã®)
                                     ãµã¼ãã¹ã®ããã«åå¨ãã¾ãã ãããã¯å¾è¿°ã® DAEMON
                                     ã«è¦æ±ããã¦ãã¾ãã

                         DAEMON      lpd ã ntpd
                                     ã¨ãã£ããã¹ã¦ã®æ±ç¨ãã¼ã¢ã³ã®åã®ãã§ãã¯ãã¤ã³ãã§ãã

                         LOGIN       ã¦ã¼ã¶ãã°ã¤ã³ãµã¼ãã¹ (inetd ã sshd)
                                     ããã³ã¦ã¼ã¶ã¨ãã¦ã³ãã³ããå®è¡ããããµã¼ãã¹
                                     (cron ã sendmail) ã®åã®ãã§ãã¯ãã¤ã³ãã§ãã

           foo.sh        ãµãã·ã§ã«ã§ã¯ãªãç¾å¨ã®ã·ã§ã«ã«ã½ã¼ã¹ãããã¹ã¯ãªãã㯠.sh
                         ãµãã£ãã¯ã¹ãæã¡ã¾ãã ãã®ä½¿ç¨ã«ã¯é常ã«æ³¨æãã¦ãã ããã
                         ã¹ã¯ãªãããåæ¢ãã¦ãã¾ãã¨ãèµ·åã·ã¼ã±ã³ã¹ãåæ‐
                         ¢ãã¦ãã¾ãã¾ãã®ã§ã

           bar           ãµãã·ã§ã«åã§ã½ã¼ã¹ãããã¹ã¯ãªããã
                         ãããã®ã¹ã¯ãªããã¯å¿è¦ãªãã°æ¬¡ã®ã·ã§ã«ã³ãã³ãã§ããã¼ããåæ‐
                         ¢ã§ãã¾ã:

                               if [ "$autoboot" = yes ]; then
                                       kill -TERM $$
                               fi
                               exit 1

                         ããã使ç¨ãããã¨ã¯ããªãæ§ãã¦ãã ãã!

     åã¹ã¯ãªãã㯠rcorder(8) ãã¼ã¯ã¼ããç¹ã«é©å㪠“PROVIDE” ã¨ã³ããªã¨å¿è¦ã«å¿ãã
     “REQUIRE” ããã³ “BEFORE” ã®ãã¼ã¯ã¼ããå«ãã¹ãã§ãã

     åã¹ã¯ãªããã¯å°ãªãã¨ãä¸è¨ã®å¼æ°ãæ±ãããã¨ãæå¾ããã¾ãã ãããã¯ã run_rc_command()
     é¢æ°ã使ç¨ããå ´åã«ã¯èªåçã«ãµãã¼ãããã¾ã:

           start    ãµã¼ãã¹ãéå§ãã¾ãã ãµã¼ãã¹ãéå§ãããã rc.conf(5)
                    ã§æå®ãããã確èªãã¹ãã§ãã ã¾ãããµã¼ãã¹ãæ¢ã«å®è¡ä¸ãã©ãã確èªãã
                    ãã®å ´åã«ã¯ãµã¼ãã¹éå§ãæå¦ãã¹ãã§ãã
                    ã·ã¹ãã ãç´æ¥ãã«ãã¦ã¼ã¶ã¢ã¼ããèµ·åããå ´åããã¼ãå¦çãé«éããããã«ã
                    æ¨æºã® FreeBSD ã¹ã¯ãªããã¯ãå¾èã®ç¢ºèªãè¡ãã¾ããã forcestart
                    ãæå®ãããå ´åã rc.conf(5) ã®ãã§ãã¯ã¯ç¡è¦ããå¼·å¶çã«éå§ãã¾ãã

           stop     rc.conf(5) ã§ãµã¼ãã¹éå§ãæå®ããã¦ããå ´åããµã¼ãã¹ãåæ¢ãã¾ãã
                    ãµã¼ãã¹ãå®éã«åä½ãã¦ãããã¨ã確èªãã
                    ããã§ãªãå ´åã«ã¯æå¥ãè¨ãã¹ãã§ãã forcestop ãæå®ãããå ´åã
                    rc.conf(5) ã®ãã§ãã¯ã¯ç¡è¦ããåæ¢ã試ã¿ã¾ãã

           restart  stop ãå®è¡ãã start ãå®è¡ãã¾ãã

           status   ã¹ã¯ãªããã (1 度éãã®åä½ã§ã¯ãªã) ããã»ã¹ãèµ·åããå ´åã ãã‐
                    ã»ã¹ã®ç¶æã表示ãã¾ãã
                    ããã§ãªãå ´åããã®å¼æ°ããµãã¼ãããå¿è¦ã¯ããã¾ããã
                    ããã©ã«ãã¯ã(å®è¡ä¸ã®ãã®ãããã°) ããã°ã©ã ã®ããã»ã¹ ID
                    ã表示ãã¾ãã

           poll     ã¹ã¯ãªããã (1 度éãã®åä½ã§ã¯ãªã) ããã»ã¹ãèµ·åããå ´åã
                    ã³ãã³ãã®çµäºãå¾ã¡ã¾ãã
                    ããã§ãªãå ´åããã®å¼æ°ããµãã¼ãããå¿è¦ã¯ããã¾ããã

           rcvar    ãµã¼ãã¹ã®èµ·åã«ã©ã® rc.conf(5) å¤æ°ã使ç¨ããããã表示ãã¾ã
                    (ããããã°)ã

     ã¹ã¯ãªããã追å ã³ãã³ããå®è£ããå¿è¦ãããå ´åã extra_commands å¤æ°ã«ããããåæãã
     ã³ãã³ãåãããªãå¤æ°ã«ãã®åä½ãå®ç¾©å¯è½ã§ã (使ç¨ä¾ ç¯ãåç§ãã¦ãã ãã)ã

     /usr/local/etc/rc.d/ ãã£ã¬ã¯ããªåã®å¤ãã¹ã¯ãªããã«ã¯ã次ã®éè¦äºé ãé©ç¨ããã¾ã:

     ·   ã¹ã¯ãªããã¯ã basename(1) ãã·ã§ã«ã°ãããã¿ã¼ã³ *.sh
         ã«ãããããå®è¡å¯è½ã§ããå ´åã®ã¿ãå®è¡ããã¾ãã ãã®ãã£ã¬ã¯ããªä¸‐
         ã®ä»ã®ãã¡ã¤ã«ããã£ã¬ã¯ããªã¯ãé»ã£ã¦ç¡è¦ããã¾ãã

     ·   ãã¼ãæã«ã¹ã¯ãªãããå®è¡ããã¨ããæåå “start” ããæåãã¤å¯ä¸ã®å¼æ°ã¨ãã¦æ¸¡ããã¾ãã
         ã·ã£ãããã¦ã³æã«ã¯ãæåå “stop” ããæåãã¤å¯ä¸ã®å¼æ°ã¨ãã¦æ¸¡ããã¾ãã ãã¹ã¦ã®
         rc.d/ ã¹ã¯ãªããã¯ããããå¼æ°ãé©åã«æ±ãããã®ã§ããã¨æå¾ããã¾ãã
         æå®æã«åä½ä¸è¦ã®å ´å (ãã¼ãæã«ãã·ã£ãããã¦ã³æã«ã)ã
         ã¹ã¯ãªããã¯æåè£ã«çµäºããã¨ã©ã¼ã¡ãã»ã¼ã¸ãåºåãã¦ã¯ãªãã¾ããã

     ·   åãã£ã¬ã¯ããªåã®ã¹ã¯ãªããã¯ãè¾æ¸é ã«å¦çããã¾ãã ç¹å®ã®é åºãå¿è¦ãªå ´åã«ã¯ã
         æ¢åã®ãã¡ã¤ã«åã®åã«çªå·ãä»ããã¨è¯ãããããã¾ããã ä¾ãã°ã 100.foo 㯠200.bar
         ã®åã«å®è¡ããã¾ãããçªå·ãåã«ä»ããªãã¨éã®é çªã«ãªãã¾ãã

     ·   å¸åçãªåã¹ã¯ãªããã®åºåã¯ã1 åã®ç©ºç½æåã®å¾ã«ã
         èµ·åã¾ãã¯çµäºãããã½ããã¦ã§ã¢ããã±ã¼ã¸åãç¶ãã æå¾ã«ã¯æ¹è¡æå㯠ä»ãã¾ãã (
         使ç¨ä¾ ã®ç¯ãè¦ã¦ãã ãã)ã

èå³æ·±ãã¹ã¯ãªãã
     èªåãªãã¼ãå¦çã®é²è¡ä¸ã rc 㯠autoboot ãå¼æ°ã¨ãã¦èµ·åããã¾ãã /etc/rc.d/
     ããèµ·åãããã¹ã¯ãªããã®ã²ã¨ã¤ã /etc/rc.d/fsck ã§ãã ãã®ã¹ã¯ãªãã㯠fsck(8) ã -p
     ããã³ -F ãªãã·ã§ã³ä»ãã§å®è¡ãã
     ååã®ã·ã¹ãã ã·ã£ãããã¦ã³ã«ããäºç´°ãªãã£ã¹ã¯ä¸æ´åãå¨ã¦ “修織 ãã
     ãã¼ãã¦ã§ã¢ãããã¯ã½ããã¦ã§ã¢ã®é害ããçãã é大ãªãã£ã¹ã¯ä¸æ´åã調ã¹ã¾ãã
     ããã失æããã¨ã
     ãã¼ãã¦ã§ã¢ãããã¯ã½ããã¦ã§ã¢ã®å¤±æã«ããçºçããé大ãªçç¾ã®ç¢ºèª/修復ã¯ã
     ãã¼ãå¦çã®æå¾ã«ããã¯ã°ã©ã¦ã³ãã§å®è¡ããã¾ãã autoboot ãè¨å®ããã¦ããªãå ´åã
     ä¾ãã°ã·ã³ã°ã«ã¦ã¼ã¶ã¢ã¼ããããã«ãã¦ã¼ã¶ã¢ã¼ãã¸ä»¥éããã¨ãã
     ãã®ã¹ã¯ãªããã¯ä½ããã¾ããã

     rc.early ã¹ã¯ãªããã¯ãèµ·åå¦çã®é常ã«æ©ã段éã
     ããªãã¡ãã¡ã¤ã«ã·ã¹ãã ãã§ãã¯ã®ç´åã«å®è¡ããã¾ãã rc.early
     ã¹ã¯ãªããã¯ä¾¡å¤ãä½ä¸ãã¦ãã¾ãã ãã®ãã¡ã¤ã«ã®ä¸ã®ã³ãã³ãã¯ã rc.d/
     ã¹ã¿ã¤ã«ã¹ã¯ãªããã¸åå²ãã rc ã·ã¹ãã ã«çµã¿è¾¼ãã¹ãã§ãã

     /etc/rc.d/local ã¹ã¯ãªããã¯è¤æ°ã® rc.d/ ãã£ã¬ã¯ããªä¸‐
     ã®ã¹ã¯ãªãããå®è¡å¯è½ã§ãã ããã©ã«ãä½ç½®ã¯ /usr/local/etc/rc.d/ ã¨
     /usr/X11R6/etc/rc.d/ ã§ããã local_startup rc.conf(5) å¤æ°ã§ä¸æ¸ãå¯è½ã§ãã

     /etc/rc.d/serial ã¹ã¯ãªããã¯ã ã·ãªã¢ã«ããã¤ã¹ã®ç¹æ®ãªæ§æãããã°ãããè¨‐
     å®ããããã«ä½¿ç¨ãã¾ãã

     /etc/rc.d/network* ã¹ã¯ãªããã¯ããããã¯ã¼ã¯ãèµ·åããããã«ä½¿ç¨ãã¾ãã
     ãããã¯ã¼ã¯ã®èµ·åã¯è¤æ°ãã¹ã§è¡ããã¾ãã æåã®ãã¹ /etc/rc.d/network1
     ã¯ããã¹ãåã¨ãã¡ã¤ã³åãè¨å®ãã ãããã¯ã¼ã¯ã¤ã³ã¿ãã§ã¼ã¹ãæ§æãã¾ãã
     /etc/rc.d/network2 ã¹ã¯ãªããã¯ãã«ã¼ãã£ã³ã°éå§ããã«ã¼ãã£ã³ã°ãªãã·ã§ã³ãè¨‐
     å®ãã¾ãã /etc/rc.d/network3 ã¹ã¯ãªããã¯ã追å ã®ãããã¯ã¼ã¯ãªãã·ã§ã³ãè¨å®ãã¾ãã
     æå¾ã« /etc/rc.d/network_ipv6 ã¹ã¯ãªããã¯ãIPv6 ã¤ã³ã¿ãã§ã¼ã¹ã¨ãªãã·ã§ã³ãè¨‐
     å®ãã¾ãã

     rc.firewall ã¹ã¯ãªããã¯ã ã«ã¼ãã«ãã¼ã¹ã®ãã¡ã¤ã¢ã¦ã©ã¼ã«ãµã¼ãã¹ã®è¦åã®è¨‐
     å®ã«ä½¿ç¨ããã¾ãã

           open      å¨å¥åã許å¯ãã¾ãã
           client    ãã®ãã·ã³ã®ã¿ãä¿è·ãããã¨ãã¾ãã
           simple    å¨ãããã¯ã¼ã¯ãä¿è·ãããã¨ãã¾ãã
           closed    lo0 以å¤ã®å¨ IP ãµã¼ãã¹ãç¡å¹ã«ãã¾ãã
           UNKNOWN   ãã¡ã¤ã¢ã¦ã©ã¼ã«è¦åã®ãã¼ããç¡å¹ã«ãã¾ãã
           filename  æå®ãããã¡ã¤ã«åã®è¦åããã¼ããã¾ã (ãã«ãã¹æå®ãå¿è¦)ã

     /etc/rc.d/atm* ã¹ã¯ãªããã¯ãATM ãããã¯ã¼ã¯ã¤ã³ã¿ãã§ã¼ã¹ãè¨‐
     å®ããããã«ä½¿ç¨ããã¾ãã ã¤ã³ã¿ãã§ã¼ã¹ã¯ 3 ã¤ã®ãã¹ã§è¨å®ããã¾ãã 第 1
     ã®ãã¹ã§ã¯ãã¤ã³ã¿ãã§ã¼ã¹ã®åæè¨å®ããããªãã¾ãã 第 2
     ã®ãã¹ã§ã¯ãã¤ã³ã¿ãã§ã¼ã¹ã®è¨å®ãçµãã PVC ããã³æ°¸ç¶ç㪠ATMARP
     ã¨ã³ããªãå®ç¾©ãã¾ãã 第 3 ã®ãã¹ã§ã¯ãä»»æã® ATM ãã¼ã¢ã³ãèµ·åãã¾ãã

     ãããã¯ã¼ã¯é¢é£ãã¼ã¢ã³ãå«ãã»ã¨ãã©ã®ãã¼ã¢ã³ã¯ã èµ·åã»åæ‐
     ¢ã»ãµã¼ãã¹ã®ç¶æ確èªã®ããã«ä½¿ç¨å¯è½ãªèªèº«ã®ã¹ã¯ãªããã /etc/rc.d/
     ã«æã¡ã¾ãã

     ä¾ãã° /etc/rc.d/apm çã®ã¢ã¼ããã¯ãã£åºæã¹ã¯ãªããã¯ããã¼ã¢ã³ã®èµ·ååã«ã
     ç¹ã«è©²å½ã¢ã¼ããã¯ãã£ä¸ã§ããã®ãã確èªãã¾ãã

     ä¼çµ±ã«å¾ãããã¹ã¦ã®ã¹ã¿ã¼ãã¢ãããã¡ã¤ã«ã¯ /etc ãã£ã¬ã¯ããªã«ç½®ããã¾ãã

使ç¨ä¾
     以ä¸ã¯æå°ã® rc.d/ ã¹ã¿ã¤ã«ã¹ã¯ãªããã§ãã
     ã»ã¨ãã©ã®ã¹ã¯ãªããã§ã¯ããã«ãªãããã®è¿½å ãå¿è¦ã§ãããã

           #!/bin/sh
           #

           # PROVIDE: foo
           # REQUIRE: bar_service_required_to_precede_foo
           # BEFORE:  baz_service_requiring_foo_to_precede_it

           . /etc/rc.subr

           name="foo"
           rcvar=`set_rcvar`
           command="/usr/local/bin/foo"

           load_rc_config $name
           run_rc_command "$1"

     ã¹ã¯ãªããã«ãã£ã¦ã¯è¿½å æ©è½ãæä¾ãããã§ãããã
     追å ã³ãã³ããä»ãããã¨ã§ããã®æ©è½ã«ã¢ã¯ã»ã¹å¯è½ã§ãã
     ã¹ã¯ãªããã¯ãã³ãã³ããå¿è¦ãªã ãåæãå®ç¾©å¯è½ã§ãã

           #!/bin/sh
           #

           # PROVIDE: foo
           # REQUIRE: bar_service_required_to_precede_foo
           # BEFORE:  baz_service_requiring_foo_to_precede_it

           . /etc/rc.subr

           name="foo"
           rcvar=`set_rcvar`
           command="/usr/local/bin/foo"
           extra_commands="nop hello"
           hello_cmd="echo Hello World."
           nop_cmd="do_nop"

           do_nop()
           {
                   echo "I do nothing."
           }

           load_rc_config $name
           run_rc_command "$1"

     ãã¼ãæã«ãã¼ã¢ã³ãèµ·åããã·ã£ãããã¦ã³æã«ãããçµäºããã å¤ãã¹ã¿ã¤ã«ã®
     /usr/local/etc/rc.d/ ã¹ã¯ãªããã®ä»®æ³çãªä¾ã示ãã¾ãã

           #!/bin/sh -
           #
           #    foobar ããã±ã¼ã¸ã®åæå/ã·ã£ãããã¦ã³ã¹ã¯ãªãã

           case "$1" in
           start)
                   /usr/local/sbin/foo -d && echo -n ' foo'
                   ;;
           stop)
                   kill `cat /var/run/foo.pid` && echo -n ' foo'
                   ;;
           *)
                   echo "unknown option: $1 - should be 'start' or 'stop'" >&2
                   ;;
           esac

     ã·ã£ãããã¦ã³æã«ã¯ init(8) ãå¨ããã»ã¹ãçµäºãããã®ã§ãæ示ç㪠kill(1)
     ã¯ä¸è¦ã§ããããããå«ã¾ãããã¨ãå¤ãã§ãã

é¢é£ãã¡ã¤ã«
     /etc/rc
     /etc/rc.conf
     /etc/rc.conf.local
     /etc/rc.d/
     /etc/rc.firewall
     /etc/rc.local
     /etc/rc.shutdown
     /etc/rc.subr
     /var/run/dmesg.boot               rc ããã»ã¹ã®éå§ç´å¾ã« dmesg(1)
                                       ãçµæãæ¸ãè¾¼ã¿ã¾ãã ã«ã¼ãã«åã® dmesg
                                       ãããã¡ããã¯ããã®æå ±ãä¿æãã¦ããªãå ´åã«æç¨ã§ãã

é¢é£é ç®
     kill(1), rc.conf(5), init(8), rcorder(8), rc.subr(8), reboot(8),
     savecore(8)

æ´å²
     rc ã¹ã¯ãªãã㯠4.0BSD ã§ç»å ´ãã¾ããã