php-db | 2001011
Date: 01/05/01
- Next message: Jackson Ricardo Schroeder: "[PHP-DB] << Checar caixa postal com IMAP >>"
- Previous message: Luis Castro Mendoza: "Re: [PHP-DB] Connecting to a Remote Oracle Database"
- In reply to: Steve Bern: "[PHP-DB] Re: [PHP] Autologin problem"
- Next in thread: Jackson Ricardo Schroeder: "[PHP-DB] << Checar caixa postal com IMAP >>"
- Reply: Jackson Ricardo Schroeder: "[PHP-DB] << Checar caixa postal com IMAP >>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In fact the RH style (rc.d) way is to add symlink "S95postgresql" (or
"S<what_ever_you_need_number>postgresql" the number after "S" is for
set the position after what postgres must start (eg. after or before
apache) - for more detail see rc file in rc.d (and other rc.* files
too)) on rc3.d (or directory for other runlevel) directory to the
/etc/init.d/postgresql
In fact in this rc.local start string was some syntax bugs (misuses?)
first of all You don't need to use nohup. It is nohup'ed by default (If I
good remember)
Second: Always use "su" with "-" option!
It meens that proper syntax is
su - -c "command to run" <username>
the "-" swith is for map env variables to variables proper for user
<username>
hope it helpful.
regards
Robert
> I assume you're trying to get PostGresql to load automatically. In RH,
> get rid of the stuff you wrote below and put in the following line (in
> rc.local):
>
> /etc/rc.d/init.d/postgresql start
>
> This is the proper way to start the DB.-- Read the file to see what it
> does. You can also stop and restart it in similar fasion.
>
>
> On Thu, 4 Jan 2001, Julio Cuz, Jr. wrote:
>
> > Hi--
> >
> > I'm trying to run the following command on the "/etc/rc.local" so it will
> > run everytime (RedHat 7/PHP4/PostgreSQL):
> >
> > nohup su -c 'postmaster -i -D /usr/local/pgsql/data \
> > </dev/null >>server.log 2>>1 &' <username>
> >
> > The problem is that <username> has a password set, and since Linux doesn't
> > ask for it when it's on the rc.local file, my command fails.
> >
> > Is there a way to include the password with the "su" command?
> >
> > Is there a way to CLEAR a user's password and set it to NULL?
> >
> > Julio Cuz, Jr.
> > Riverside Community College
> > jcuz <email protected>
> >
>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Jackson Ricardo Schroeder: "[PHP-DB] << Checar caixa postal com IMAP >>"
- Previous message: Luis Castro Mendoza: "Re: [PHP-DB] Connecting to a Remote Oracle Database"
- In reply to: Steve Bern: "[PHP-DB] Re: [PHP] Autologin problem"
- Next in thread: Jackson Ricardo Schroeder: "[PHP-DB] << Checar caixa postal com IMAP >>"
- Reply: Jackson Ricardo Schroeder: "[PHP-DB] << Checar caixa postal com IMAP >>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

