SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am attempting to start postgreSQL on my computer at boot time. I can start the server from the command line but cannot figure out how to get it to start on boot.
The problem is that postgreSQL server must be run by a particular user (in this case "postgres"). I am wondering how to script that and where I should be putting it in the etc folder, and how to organize, and....
I would ask the postgres guys, but their documentation is fairly clear as to how to start their software, I'm more wondering how to execute the commands to automagically...
So to summarize:
How do I start run a command as the user "postgres" at system boot?
Or you make a cron for the user "postgress" or you make a simple script (su postgress (no passwd needed), command to start). and put this into /etc/rc.d/rc.local
The wife needs me off the computer so I will shutdown right now and let you know after work.
Went with Tinkster's... It looks like he's running postgreSQL (mentions a couple things you would only know if you had read the manual or worked with postgres).
Sorry it took so long, but I am having trouble with my computer overheating and the reinstall of postgres kept cutting the power to my computer and ......
Anyway. I used tinkster's solution, it worked. I now have postgresql running everytime I turn my computer on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.