LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 12-11-2005, 01:26 PM   #1
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 789

Rep: Reputation: 43
Why is PostgreSQL started at boot?

Debian starts PostgreSQL at boot time. Is this necessary or can I remove it?

I know I could experiment but I don't want to break anything.
Old 12-12-2005, 10:41 AM   #2
LQ Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Debian has a couple different tools you can use for adjusting What services start in what run levels. rcconf a basic ON/OFF tool, and sysv-rc-conf Which provides more granular control.
Installing one of these will allow you to easily set what services start in particular run levels.

PostgreSQL should not be necessary unless you are using it for a specific task.


apt-get install sysv-rc-conf
sysv-rc-conf --level 2345 postgresql off

That command should set postgres to not start at boot time.

If you need to re-enable it, you can simply
sysv-rc-conf --level 2345 postgresql on

alternately you could use rcconf

apt-get install rcconf

then simply use the arrow keys to select the service you want to change startup on and toggle it on or off..


or you could make the change manually without using any of the config tools....

mv /etc/rc2.d/S20postgresql /etc/rc2.d/K20postgresql

S means Start K means Kill

Last edited by farslayer; 12-12-2005 at 10:43 AM.
Old 12-16-2005, 04:57 PM   #3
Senior Member
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
or you could make the change manually without using any of the config tools....

mv /etc/rc2.d/S20postgresql /etc/rc2.d/K20postgresql
That seems like the manly-man way to do it, but I opted for rcconf ... works great.

I was surprised to note that alsa was not selected to start at boot, but my sound works fine so I left it unenabled.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PCCARD not detected/started at boot radioham1 Linux - Laptop and Netbook 1 12-01-2004 04:58 PM
dhcpcd being started twice on boot Wynd Slackware 7 11-13-2004 12:47 PM
several processes started more than once at boot j-ray Linux - General 2 05-13-2004 12:37 PM
postgresql -odbc & postgresql-jdbc installation kjsubbu Linux - Software 0 06-19-2003 02:50 AM
Postgresql FAILS at boot (used to work...) lhoff Linux - Newbie 1 03-06-2002 09:37 AM

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration