Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I built postgresql on EC2 and it is running fine. However, I have been manually controlling it from 'pg_ctl start/stop' as there seems to have been no service configured or evident way to configure the database server to start at boot and stop at shutdown. I have searched and searched and can find nothing. Do I have to make one? If so, how?

share|improve this question
Why don't you use rpms available at ? – rvs Feb 14 '12 at 16:36
Maybe I will in the future. Thanks. – n8gard Feb 14 '12 at 17:15
up vote 3 down vote accepted

If you built PostgreSQL manually, then yes, you'll have to take care of the startup script yourself. The official RPMs should have one you can copy.

Edit: initscript from Fedora 13

share|improve this answer
Thanks. If anyone has examples, I would appreciate it. I'm not in a position to install the RPM anywhere right now. – n8gard Feb 14 '12 at 17:14
So, unpack the RPM? – ch2500 Feb 17 '12 at 16:13

You need to find one suitable for your OS or make one yourself. Some source packages come with startup scripts for several distributions. You can try this option also.

If you failed with all these options, you can install it with the package manager and get the startup script. It is preferred to this do on another testing machine.

share|improve this answer

Your Answer


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.