RE: startup / shutdown scripts for *BSD?

From: "Chris Knight" <chris(at)aims(dot)com(dot)au>
To: <pgsql-general(at)hub(dot)org>
Cc: <anon(at)mgfairfax(dot)rr(dot)com>
Subject: RE: startup / shutdown scripts for *BSD?
Date: 2000-04-05 05:12:52
Message-ID: 006201bf9ebd$98c9e900$020aa8c0@aims.private
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Howdy,
Assuming you've installed the FreeBSD package, or built it from the ports
tree:

% cat /usr/local/etc/rc.d/pgsql.sh
#!/bin/sh
[ -d /usr/local/pgsql/lib ] && /sbin/ldconfig -m /usr/local/pgsql/lib

[ -x /usr/local/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec /usr/local/pgsql/bin/postmaster -i -S -o -F'
>/usr/local/pgsql/errlog 2>&1
echo -n ' pgsql'
}

I haven't bothered with a shutdown script.

Regards,
Chris Knight
Systems Administrator
AIMS Independent Computer Professionals
Tel: +61 3 6334 6664 Fax: +61 3 6331 7032 Mob: +61 419 528 795
Web: http://www.aims.com.au

> -----Original Message-----
> From: pgsql-general-owner(at)hub(dot)org
> [mailto:pgsql-general-owner(at)hub(dot)org]On
> Behalf Of Bruce Bantos
> Sent: Wednesday, 5 April 2000 13:41
> To: pgsql-general(at)postgreSQL(dot)org
> Subject: [GENERAL] startup / shutdown scripts for *BSD?
>
>
> Hello all. Does anyone have a PostgreSQL startup / shutdown
> script for a
> freeBSD machine? I have one for a linux machine, but I am
> having trouble
> converting it to work with the BSD environment. My knowledge
> of the BSD
> platform is very limited. I have frequently seen messages on
> this list from
> users of PostgreSQL on BSD, so if anyone could share a script
> I would be
> very appreciative. Thanks!
>
> -B
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2000-04-05 08:47:31 Re: shell scripting
Previous Message Julie Hunt 2000-04-05 05:10:40 Re: creating a function in psql