Results 1 to 2 of 2
I can't figure out on how to run postgreSQL on start up. I have put everything I need at rc.local (adsl-start, httpd -k start, other stuff) but the postmaster thing ...
- 08-26-2003 #1Just Joined!
- Join Date
- Aug 2003
- Posts
- 9
More on start up
I can't figure out on how to run postgreSQL on start up. I have put everything I need at rc.local (adsl-start, httpd -k start, other stuff) but the postmaster thing doesn't work. I know that, as root, u cannot access postgres. Then I tried to put this in rc.local:
But, still, it didn't work (although it works on the command promot).Code:sudo -u postgres postmaster
So is there any way to do this by scripting or should I look to other places where postgreSQL is configured?
- 08-26-2003 #2Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
I would recommend to create a real startprogram under /etc/init.d for that program that every other applications have. But if you need a quick answer try to use..
In /etc/rc.local... that will change user to postgres and execute postmaster as that user...i havent tried it postgres my self so i canīt say if it workes, but its worth a try.Code:su - postgres -c "postmaster"
Regards
Andutt


Reply With Quote
