postgres8.1 on boot

今更なにを、って感じですが・・・

PortsからPostgresをインストールすると、
/usr/local/etc/rc.d/010.pgsql.shがあるにもかかわらず、
FreeBSD起動時にPostgresが立ち上がりません。

010.pgsql.shの内容を見ると、

# set defaults
postgresql_enable=${postgresql_enable:-"NO"}
postgresql_flags=${postgresql_flags:-"-w -s -m fast"}
postgresql_user=pgsql
eval postgresql_data=${postgresql_data:-"~${postgresql_user}/data"}
postgresql_class=${postgresql_class:-"default"}

こうなってます。
初期状態で無効にされている安心設計でした。

そこで
# Add the following line to /etc/rc.conf to enable PostgreSQL:
以下の行を参考に修正するこれで完璧。