memo.xight.org


2003-09-28 Sun

Debian GNU/Linux での /etc/rc?.d/ 操作

- Summary
/usr/sbin/update-rc.d を用いる

- すべてのランレベルでサービスの起動停止

# update-rc.d -f inetd remove


- ランレベル5でinetdを停止

# update-rc.d inetd stop 20 5 .


- デフォルトの起動,停止リンクを作成
ランレベル 2,3,4,5 にサービスの起動用リンクを作成,ランレベル 0,1,6 にサービスの停止用リンクを
シーケンスコード 90で作成

# update-rc.d postgres defaults 90

以下のシンボリックリンクが作成される.
/etc/rc0.d/K90postgres -> ../init.d/service/K90postgres
/etc/rc1.d/K90postgres -> ../init.d/service/K90postgres
/etc/rc2.d/S90postgres -> ../init.d/service/S90postgres
/etc/rc3.d/S90postgres -> ../init.d/service/S90postgres
/etc/rc4.d/S90postgres -> ../init.d/service/S90postgres
/etc/rc5.d/S90postgres -> ../init.d/service/S90postgres
/etc/rc6.d/K90postgres -> ../init.d/service/K90postgres

- ランレベル2,3,4,5はS90で起動,ランレベル0,1,6はK10で停止.

#update-rc.d postgres start 90 2 3 4 5 . stop 10 0 1 6 .

以下のシンボリックリンクが作成される.
/etc/rc0.d/K10postgres
/etc/rc1.d/K10postgres
/etc/rc2.d/S90postgres
/etc/rc3.d/S90postgres
/etc/rc4.d/S90postgres
/etc/rc5.d/S90postgres
/etc/rc6.d/K10postgres

- Reference
Debianでの起動処理(init)とランレベル(rc.d)の制御
http://park15.wakwak.com/~unixlife/linux/de-init.html

カテゴリ: [Debian]

wget で よく使うオプション

- ファイルからURIを読み込む

$ wget -i hoge.list

- レジューム

$ wget -c http://example.com/hoge.zip

- バックグラウンドで動かす

$ wget -b http://example.com/hoge.zip

- 再帰的に取得する

$ wget -r http://example.com/

カテゴリ: [wget]
内部リンク: [2006-06-07-1]

合宿準備の買出し

- OK で揃える

割り箸 500 膳
紙皿 60 枚
コップ 150 個
ビール 24 本 x 500 ml x 4 ケース
サワー 25 本 x 350 ml
などなど,\27000 以上の買い物.
  がんばって \30000 の大台に乗せようかとも話していたが,意味が無いので中止.

カテゴリ: [日記]

JNethack の呪文の名前の由来

- Reference
  呪文の名前の由来
  http://www.jnethack.org/origin.html

カテゴリ: [Game][ネタ]
2003-09 / 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Color Reference

ChangeLogを検索
携帯電話からアクセス!

カテゴリ

最近の話題

リンク

過去ログ

Google

QR Code

Since
2002-11-28
Update
2008-09-05 14:14
Copyright © 2005 xight.org All Rights Reserved.