Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I start my postgreSQL-Db with this command:

/usr/lib/postgresql/8.4/bin/pg_ctl
    -D /usr/local/pgsql/data
    -l /var/log/globus/postgresql.log -o -i start

are the parameters kept if I restart the sql server with

/etc/init.d/postgresql restart

Thank you!

share|improve this question

1 Answer 1

up vote 0 down vote accepted

"I don't know" but I doubt it.

You should read /etc/init.d/postgresql to see what it actually does.

I'm not sure on the 'best practice' but I would assume that most options you can give on the command line can be set in postgresql's configuration file instead.

If you are able to specify those options in the configuration file, I would strongly suggest you do so, rather than modifying /etc/init.d/postgresql.

share|improve this answer
    
Thank you for your answer! I will check the file and the configuration possibilities... –  strauberry Jul 13 '11 at 18:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.