Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Ubuntu server and playing around with Upstart. I have installed PostgreSQL database server which doesn't use Upstart system, however im also writting an Upstart script that starts another process which depends on the PostgreSQL server to be up and running. How do i setup my Upstart conf file to run when the PostgreSQL will already be running since its not part of the Upstart?

Heres my simple script so far:

start on runlevel [2345]
stop on runlevel [!2345]

exec /spatial/server_init.sh
share|improve this question
Okay, i think i ll try writting the Postgresql job in Upstart, i found this useful link: bradleyayers.blogspot.com/2011/10/… – U2ros Oct 30 '12 at 19:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.