I am running Ubuntu 12.04 LTS in an openVZ container under Proxmox 2.x
I noticed that on reboots, Postgres was not starting. Some short searches revealed that I need to change a few lines in /etc/init/tty1.conf
The changes required me to change the document
FROM THIS:
# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.
start on stopped rc RUNLEVEL=[2345] and (
not-container or
container CONTAINER=lxc or
container CONTAINER=lxc-libvirt)
stop on runlevel [!2345]
respawn
exec /sbin/getty -8 38400 tty1
TO THIS:
# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
exec /sbin/getty -8 38400 tty1
How could this have solved Postgres starting automatically at boot time? What exactly did the removal of those lines do?