LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


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

Rep: Reputation: 45
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
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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
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
rickh
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: 62
Quote:
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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