I've an OpenERP server running on one of my servers. It's started by a traditional /etc/init.d/
script. It uses a PostgreSQL database and needs a manual restart every time PostgreSQL is restarted.
Every time Ubuntu releases a security update for PostgreSQL, my OpenERP server becomes non-functional until I ssh to the server and manually run sudo /etc/init.d/my-openerp restart
. I usually forget to do that after I do the sudo apt-get upgrade
.
Can I configure upstart to do that for me, every time postgresql is restarted by apt?