Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
1  
Why don't you use rpms available at yum.postgresql.org ? –  rvs Feb 14 '12 at 16:36
    
Maybe I will in the future. Thanks. –  B5Fan74 Feb 14 '12 at 17:15
add comment

2 Answers

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. –  B5Fan74 Feb 14 '12 at 17:14
    
So, unpack the RPM? –  ch2500 Feb 17 '12 at 16:13
add comment

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
add comment

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.