ランレベルごとのサービス起動
その答は/etc/
$ ls /etc/rc.d/ init.d/ rc.initpkg* rc0.d/ rc1.d/ rc2.d/ rc3.d/ rc4.d/ rc5.d/ rc6.d/ rcS.d/
このrc0.
サービス起動用スクリプトは本体を/etc/
$ ls -l /etc/rc.d/rc5.d/ 合計 126,976 lrwxrwxrwx 1 root root 18 6月 6日 14:41 S19iptables -> ../init.d/iptables* lrwxrwxrwx 1 root root 17 6月 6日 14:38 S20network -> ../init.d/network* lrwxrwxrwx 1 root root 24 6月 7日 19:55 S20vboxdrv -> /etc/rc.d/init.d/vboxdrv* lrwxrwxrwx 1 root root 17 6月 6日 14:49 S21unbound -> ../init.d/unbound ....
rcスクリプトは,
"S"ではなく"K"で始まるシンボリックリンクもあります。たとえば,
$ ls -l /etc/rc.d/rc1.d/ 合計 139,264 lrwxrwxrwx 1 root root 14 6月 6日 14:49 K00cups -> ../init.d/cups* lrwxrwxrwx 1 root root 17 6月 6日 14:45 K05lightdm -> ../init.d/lightdm* lrwxrwxrwx 1 root root 15 6月 6日 14:36 K08crond -> ../init.d/crond* lrwxrwxrwx 1 root root 13 6月 6日 14:41 K10gpm -> ../init.d/gpm ....
これら"K"で始まるリンクはランレベルの切り替え時に使用され,
上記で示したrc1.
一方,
$ ls -l /etc/rc.d/rcS.d/ 合計 61,440 lrwxrwxrwx 1 root root 21 6月 6日 14:38 S00mountvirtfs -> ../init.d/mountvirtfs* lrwxrwxrwx 1 root root 17 6月 6日 14:38 S05modules -> ../init.d/modules* lrwxrwxrwx 1 root root 18 6月 6日 14:38 S08localnet -> ../init.d/localnet* lrwxrwxrwx 1 root root 15 6月 6日 14:38 S10eudev -> ../init.d/eudev* ...
mountvirtfsはtmpfsやdevfs,sysfsといった仮想ファイルシステムのマウント,
rcスクリプトはシンボリックリンクを辿って/etc/
Plamo Linuxでは,
ちなみにrcスクリプトは起動する各コマンドの終了状況をチェックし,
なお,
このようにSysV形式の起動処理は,
一方,
そのような事情から,
Plamo Linuxの場合,