add in a couple more of the helper files and link postmaster to postgres, changing the init script to call postmaster instead

git-svn-id: svn://svn.openwrt.org/openwrt/packages@10223 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
pavlov
2008-01-18 19:21:07 +00:00
parent 0e74f10bb8
commit 027b15866e
2 changed files with 14 additions and 3 deletions

View File

@ -36,7 +36,7 @@ start() {
if [ -n "${pgopts}" ]; then
pgopts="-o ${pgopts}"
fi
/bin/su ${pguser} -c "/usr/bin/postgres -D '${pgdata}' &" >> ${pglog} 2>&1
/bin/su ${pguser} -c "/usr/bin/postmaster -D '${pgdata}' &" >> ${pglog} 2>&1
while :
do
@ -75,7 +75,7 @@ restart() {
if [ -f ${pgdata}/postmaster.pid ]; then
rm ${pgdata}/postmaster.pid
fi
/bin/su ${pguser} -c "/usr/bin/postgres -D '${pgdata}' &" >> ${pglog} 2>&1
/bin/su ${pguser} -c "/usr/bin/postmaster -D '${pgdata}' &" >> ${pglog} 2>&1
echo "ok"
return $?
}