2005-05-25
_ [Mac][IT] Tigerのlaunchdについて
Tigerから、起動デーモンの管理がlaunchdとゆーものへ移行しているらしい。設定ファイルは、/System/Library/LaunchDaemons以下にあるplistファイルだ。例えば、postfixについての設定ファイル(org.postfix.master.plist)は、下記のようになっている。
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/P ropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>org.postfix.master</string> <key>Program</key> <string>/usr/libexec/postfix/master</string> <key>ProgramArguments</key> <array> <string>master</string> <string>-e</string> <string>60</string> </array> <key>QueueDirectories</key> <array> <string>/var/spool/postfix/maildrop</string> </array> </dict> </plist>
おぉ〜XMLだ!postfixを常時起動に設定するために、これを書き換えてみる。修正点は2点。"master -e 60"のコマンドパラメータを単に"master"へ、そして常時起動させるために"OnDemand false"を挿入する。
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/P ropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>org.postfix.master</string> <key>Program</key> <string>/usr/libexec/postfix/master</string> <key>ProgramArguments</key> <array> <string>master</string> </array> <key>QueueDirectories</key> <array> <string>/var/spool/postfix/maildrop</string> </array> <key>OnDemand</key> <false/> </dict> </plist>
そして、launchctlを再起動。
macos:~ root# launchctl stop org.postfix.master macos:~ root# launchctl unload /System/Library/LaunchDaemons/org.postfix.master.plist macos:~ root# launchctl load /System/Library/LaunchDaemons/org.postfix.master.plist macos:~ root# launchctl start org.postfix.master
デーモンがスタートしているかどうかの確認は、
macos:~ root# launchctl list com.apple.KernelEventAgent com.apple.mDNSResponder com.apple.nibindd com.apple.periodic-daily com.apple.periodic-monthly com.apple.periodic-weekly com.apple.portmap com.apple.syslogd com.vix.cron org.xinetd.xinetd org.postfix.master
参考:Tiger Tips: How to enable postfix、 Introduction to System Startup Programming Topics、 launchd.plistのmanページ
_ [bio] 技術者の子供には男の子が多い?
職業によってこんなに違う子供の性別
両親の職業の性質によって、産まれてくる子供の性別が偏っていることがわかった。たとえば、看護婦や教師など「他人の世話をする」女性的な仕事だと、女の子が産まれる割合が高くなり。技術者や会計士など男性的な仕事だと男の子の割合が高くなる。
ロンドン・スクール・オブ・エコノミクスの研究チームがさまざまな職業の3000人を対象に実施した調査の結果で、「ジャーナル・オブ・セオリティカル・バイオロジー」に発表される。
現在、英国における男女の出生比率は105:100で男が多い。これが、両親もしくは片親が看護婦など「人の世話をする職業」だと135:100で女の子の方が多くなる。反対に技術者など論理的な仕事だと、140:100で男が多くなる。
ネタ元は、スラド経由。NMR関係の研究者の間では、「女の子が多い」とゆー説が、半ば定説になっとりますがねぇ。