Trexontas tin PostgreSQL kata tin ekkinisi
Giannis Papaioannou
jhn at egnatia.ee.auth.gr
Wed May 2 19:41:03 EEST 2001
On Tue, 1 May 2001, Batis wrote:
+>prosfata egkatestisa tin PostgreSQL. Kai kata tis odogies tis egkatastasis,
+>dimiourgisa ena xristi (postgres) ston opoio "anikei" i vasi dedomenwn kai
+>aytos kalei tin postmaster na ksekina. Kathws to mixanima mou den einai
+>server na menei oli tin wra anoixto (kai exoume kai logariasmous na
+>plirwnoume :ppp) prepei kathe fora pou ksekinw na kanw su - postgres kai
+>postmaster blah blah.
+>
+>I erwtisi einai pws mporw vazontas to sta init scripts tis ekkinisis (kata
+>protimisi, prin mpei akoma se kapoio runlevel) na ksekina i PostgreSQL
+>(diladi i entoli postmaster na kaleitai ap'ton xristi postgres).
+>
+>Any help will be really appreciated.
rixnontas mia matia sto INSTALL arxeio pou yparxei sto toplevel tou
paketou:
Here are a few more operating system specific suggestions.
o Edit file rc.local on NetBSD or file rc2.d on SPARC Solaris 2.5.1
to contain the following single line:
> su postgres -c "/usr/local/pgsql/bin/postmaster -S -D
/usr/local/pgsql/data"
o In FreeBSD 2.2-RELEASE edit /usr/local/etc/rc.d/pgsql.sh to
contain the following lines and make it chmod 755 and chown
root:bin.
#!/bin/sh
[ -x /usr/local/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec /usr/local/pgsql/bin/postmaster
-D/usr/local/pgsql/data
-S -o -F > /usr/local/pgsql/errlog' &
echo -n ' pgsql'
}
ginete amesa antilipto[0] oti prepei na pros8eseis se ena apo ta init
scripts sou(px. rc.local[1]) kati san:
su - postgres -c "/path/to/postmaster -postmaster_options" &
[0] man su
[1] yparxei kanas allos pou na exei slackware arage, h emeina mono egw?
More information about the Linux-greek-users
mailing list