LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Why is PostgreSQL started at boot? (https://www.linuxquestions.org/questions/debian-26/why-is-postgresql-started-at-boot-391574/)

davcefai 12-11-2005 01:26 PM

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.

farslayer 12-12-2005 10:41 AM

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

rickh 12-16-2005 04:57 PM

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.


All times are GMT -5. The time now is 04:28 PM.