2004年05月31日
postgres自動起動
めったに再起動しないのでほっといたけどようやくポスグレ自動起動の設定をしておいた。
/usr/local/binにstartPostgres.shを作成
中身は
su - postgres -c "postmaster&"
こんな感じ
cd /etc/rc5.d; ln -s /usr/local/bin/startPostgres.sh S99postgres
cd /etc/rc3.d; ln -s /usr/local/bin/startPostgres.sh S99postgres
cd /etc/rc0.d; ln -s /usr/local/bin/startPostgres.sh K99postgres
cd /etc/rc1.d; ln -s /usr/local/bin/startPostgres.sh K99postgres
cd /etc/rc6.d; ln -s /usr/local/bin/startPostgres.sh K99postgres
という風な感じでリンクを作成。
再起動してみる。
いけてる。
おk。
Trackback on "postgres自動起動"
このエントリーのトラックバックURL:
"postgres自動起動"へのトラックバックはまだありません。
"postgres自動起動"へのコメントはまだありません。