Janio: My experience of various Linux distributions is not very wide. But I'd be surprised if slackware didn't have some variant of the su -c command, which is what I generally use to start postgres from rc.* scripts.
A line like su postgres -c "/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data &" usually does it for me. Sorry if this is obvious and I'm missing the point. -- sgl > From: "Janio Rosa da Silva" <[EMAIL PROTECTED]> > Date: Wed, 23 Jun 2004 01:38:44 -0300 > To: <[EMAIL PROTECTED]> > Subject: [ADMIN] PostgreSQL With Slackware > > > I am looking for a way to start PostgreSQL when the computer is turned > on. Any ideas? > > I am using Slackware 9.1 and PostgreSQL 7.4.2; > > I was made a rc.postgresql script file. And I called for it from rc.local. > > But, I thing when the slackware is starting, the commands in script file are > executting under root. But the pg_ctl or postmaster should be executed under > the postgres user. > > Who can I start the postgresql server when the slackware is turned on? > > thanks, > > Janio > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster