Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 have postgresql 8.4 installed on my desktop. It keeps starting on bootup because I think I used default settings.

so I issue /etc/init.d/postgresql stop everytime and sometimes i keep forgetting

It has folder paths as,



There are a lot of configuration files and if someone can tell me where to look and what to change, that will be great.


share|improve this question
up vote 6 down vote accepted

This can help you:

But install chkconfig first:

sudo apt-get install chkconfig

and then use it

share|improve this answer
update-rc.d is more native for Debian. – ulidtko Feb 10 '11 at 22:17
awesome, worked like a charm. thanks! – bcrawl Feb 10 '11 at 22:25
You're welcome :) Check out this link too.Thanks to ulidtko. – Pedram Feb 10 '11 at 22:34

Using update-rc.d (Debian/Ubuntu):

janus@Zeus:~$ sudo update-rc.d -f postgresql remove
 Removing any system startup links for /etc/init.d/postgresql ...
share|improve this answer
this is the proper way to do what was requested – glarrain Nov 11 '13 at 14:55

Using update-rc.d is better but you can do it with chkconfig:

sudo apt-get install chkconfig
sudo chkconfig -s  postgresql off

In Ubuntu 12.04, you also need to create a symlink to insserv's location:

sudo ln -s /usr/lib/insserv/insserv /sbin/insserv
share|improve this answer
I had to create the symlink using 10.10 as well. In addition I got this large output as a response: – vemv Dec 27 '12 at 20:52

On my server there is another effect:

# update-rc.d -f postgresql remove
update-rc.d: using dependency based boot sequencing

No system startup links were removed.

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.