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

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: lory(at)mobikom(dot)bg, pgsql-hackers(at)postgresql(dot)org
Cc: lamar(dot)owen(at)wgcr(dot)org
Subject: Re: [HACKERS] Linux MANDRAKE startup startup script is broken ? (fwd)
Date: 2000-02-05 20:54:27
Message-ID: Pine.GSO.3.96.SK.1000205234036.3191A-100000@ra
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Lory,

here is what people, responsible (for RPMs) suggested to do.
As I'm not a MANDRAKE user could you please to do
what Lamar requested and send results to him.

Regards,

Oleg

PS.
Lamar, my Slackware 7.0 has:
NAME
su - Change user ID or become super-user

SYNOPSIS
su [-] [username [args]]

But you're right about su from GNU Shell Utilities - it has -l option

If MANDRAKE is just a modified Redhat distribution probable I know
possible reason why Lory's setup didn't works.
I remember I had problem with Redhat 6.1 startup files on some
system (I didn't install Redhat). It's /etc/sysconfig/i18n which was
didn't configured properly. I spent several hours trying to figured out
why compiled postgres wont' work properly with locale I directly
specified in postgres starting script. I found LC_ALL was specified
as 'C' (or something else by default, dont' remember) and LC_ALL has
higher precendence than LC_CTYPE, LC_COLLATE, LANG which were
specified in the script. So I just redefine LC_ALL as LC_CTYPE, LC_COLLATE,
LANG and everything become fine. I still don't understand LC_ALL
but I think it's worth to mention somewhere about this possible
source of confusion for Redhat people.

_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

---------- Forwarded message ----------
Date: Sat, 05 Feb 2000 15:37:00 -0500
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 ?

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

Browse pgsql-hackers by date

  From Date Subject
Next Message Dmitry Samersoff 2000-02-05 21:01:09 RE: [HACKERS] Linux MANDRAKE startup startup script is broken ?
Previous Message Don Baccus 2000-02-05 20:47:42 Re: [HACKERS] FOREIGN KEY !!!!!