Re: [HACKERS] Linux MANDRAKE startup startup script is broken ?

From: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Linux MANDRAKE startup startup script is broken ?
Date: 2000-02-05 20:37:00
Message-ID: 389C89EC.1CEA2D16@wgcr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oleg Bartunov wrote:
>
> Hi,
>
> I had a request from bulgarian user of postgres. He complained
> about non-working locale. His system is MANDRAKE 7.0 which comes
> with postgres 6.5.3 I believe. After several messages we found
> that problem was in startup script /etc/init.d/rc3.d
> su -l postgres -c 'postmaster .......'
> The problem was '-l', after removing it all problems were solved !

?!?!?!? Do something for me: add a couple of lines in
/etc/rc.d/init.d/postgresql after the postmaster start:
su -l postgres -c 'set >/var/lib/pgsql/envvars-l.lst'
su postgres -c 'set >/var/lib/pgsql/envvaqrs-no-l.lst'

And e-mail me the two '*.lst' files out of /var/lib/pgsql.

> I'm not an expert in su, at least I don't know what '-l' is supposed

>From man su:
SU(1) FSF SU(1)

NAME
su - run a shell with substitute user and group IDs

SYNOPSIS
su [OPTION]... [-] [USER [ARG]...]

DESCRIPTION
Change the effective user id and group id to that of USER.

-, -l, --login
make the shell a login shell
......

> for, but it's worth to describe the problem and let people from
> MANDRAKE to know.

The same problem should manifest itself in RedHat, which is what I build
the RPM's for. Mandrake has been taking the RedHat RPM's and using
them, with modifications, up till now, so, if I fix this in the RedHat
RPM's, the Mandrake RPM's will follow from Mandrake shortly.

--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Don Baccus 2000-02-05 20:47:42 Re: [HACKERS] FOREIGN KEY !!!!!
Previous Message Jan Wieck 2000-02-05 20:30:04 Re: [HACKERS] FOREIGN KEY !!!!!