diff options
author | jlam <jlam> | 2002-09-10 23:20:04 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-09-10 23:20:04 +0000 |
commit | 8a13af6353411bbf35ffe2df941357b807c304c7 (patch) | |
tree | 7d1afc61aa21e145bd764441c7d18d3d47f790b3 /databases | |
parent | b6bcaf9c922ef07135221916329bf0ea5c539c55 (diff) | |
download | pkgsrc-8a13af6353411bbf35ffe2df941357b807c304c7.tar.gz |
Use a stricter test for a true rc.d system and default to pgsql=NO if not
supplied in /etc/rc.conf.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/postgresql-server/files/pgsql.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/databases/postgresql-server/files/pgsql.sh b/databases/postgresql-server/files/pgsql.sh index ff74cc74a78..fbc5cc99384 100644 --- a/databases/postgresql-server/files/pgsql.sh +++ b/databases/postgresql-server/files/pgsql.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: pgsql.sh,v 1.11 2002/08/25 21:49:37 jlam Exp $ +# $NetBSD: pgsql.sh,v 1.12 2002/09/10 23:20:04 jlam Exp $ # # PostgreSQL database rc.d control script # @@ -101,9 +101,10 @@ pgsql_doit() @SU@ -m ${pgsql_user} -c "${ctl_command} ${action} ${command_args}" } -if [ -f /etc/rc.subr ] +if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ] then load_rc_config $name + eval [ -z "\$${rcvar}" ] && eval ${rcvar}=NO run_rc_command "$1" else if [ -f /etc/rc.conf ] |