supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Gilles Sadowski <gilles@harfang.homelinux.org>
To: supervision@list.skarnet.org
Subject: Re: Run scripts
Date: Fri, 4 Jul 2008 18:38:17 +0200	[thread overview]
Message-ID: <20080704163817.GK11840@dusk.harfang.homelinux.org> (raw)
In-Reply-To: <200807040928.21815.mike@geekgene.com>

Hi.

> exec chpst -u postgres /usr/bin/postmaster \
>    -D /srv/pgsql/data 2>&1
> 
> Works pretty well, you should change /srv/pgsql/data to whatever the path to 
> your cluster is, and of course, use whatever your postgres user is.

Well, I've just installed postgresql 8.3 and I was fairly lost because I was
expected more automatic configuration to take place (I use Debian).
As far as I can tell, the install just created an empty /var/lib/postgresql
directory.  In the end browsing through the documentation on the
postgresql web site, I tried "initdb". And there it was.
The second thing is that all the programs (like "postmaster") are not in
/usr/bin but in /usr/lib/postgresql/<version>/bin.  Again that's not
indicated in the Debian readme file.
But the usual startup script (in /etc/init.d) is quite complex, so I guess
that for "normal" people, it might have performed everything necessary (?)
at first launch.

Anyways, now it runs ;-)

Thanks,
Gilles


  reply	other threads:[~2008-07-04 16:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-04 15:22 Gilles Sadowski
2008-07-04 15:28 ` Mike Buland
2008-07-04 16:38   ` Gilles Sadowski [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-10-06 20:55 run scripts Daniel Zilli
2005-10-18  0:22 ` Charlie Brady
2005-10-18  9:27   ` TheOldFellow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080704163817.GK11840@dusk.harfang.homelinux.org \
    --to=gilles@harfang.homelinux.org \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).