RE: startup / shutdown scripts for *BSD? - Mailing list pgsql-general

From Chris Knight
Subject RE: startup / shutdown scripts for *BSD?
Date
Msg-id 006201bf9ebd$98c9e900$020aa8c0@aims.private
Whole thread Raw
In response to startup / shutdown scripts for *BSD?  ("Bruce Bantos" <anon@mgfairfax.rr.com>)
List 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@hub.org
> [mailto:pgsql-general-owner@hub.org]On
> Behalf Of Bruce Bantos
> Sent: Wednesday, 5 April 2000 13:41
> To: pgsql-general@postgreSQL.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
>
>



pgsql-general by date:

Previous
From: Julie Hunt
Date:
Subject: Re: creating a function in psql
Next
From: Peter Eisentraut
Date:
Subject: Re: shell scripting