recognizing a job on Ubuntu 8.04.1

Asked by Adam Monsen

I'm having trouble getting upstart to recognize a job I've created. I'm trying to set up a sobby server. I placed the following script in /etc/init/jobs.d (a directory I had to create):

-------------------------8<-------------------------
# sobby

description "dedicated server for collaborative editing"

/usr/bin/sobby --autosave-file=/var/lib/sobby/autosave /var/lib/sobby/autosave
------------------------->8-------------------------

But start/stop/status don't seem to work:

$ sudo status sobby
status: Unknown job: sobby

I'm basically following directions posted here: http://upstart.ubuntu.com/getting-started.html

Any ideas?

Question information

Language:
English Edit question
Status:
Solved
For:
upstart Edit question
Assignee:
No assignee Edit question
Solved by:
Scott James Remnant (Canonical)
Solved:
Last query:
Last reply:
Revision history for this message
Best Scott James Remnant (Canonical) (canonical-scott) said :
#1

You have forgotten the "exec" in front of the last line of your job

Revision history for this message
Adam Monsen (meonkeys) said :
#2

Thanks, Scott! That worked, but I also had to move the "sobby" file into /etc/event.d (not /etc/init/jobs.d/ mentioned in the "Getting Started" guide).

Revision history for this message
Adam Monsen (meonkeys) said :
#3

Thanks Scott James Remnant, that solved my question.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) said :
#4

The Getting Started guide is for a somewhat later version of Upstart than is in Ubuntu

Revision history for this message
Adam Monsen (meonkeys) said :
#5

Ah, I see. Thanks again.

For the record, I'm using Ubuntu 8.04.1 and upstart 0.3.9-2.