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

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

From
Oleg Bartunov
Date:
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@sai.msu.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.owen@wgcr.org>
To: Oleg Bartunov <oleg@sai.msu.su>
Cc: pgsql-hackers@postgresql.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