Can non-privileged users run jobs?

Asked by Mike Williamson

In the Upstart manual it says "With the advent of Upstart 1.3, non-privileged users are able to create jobs by creating job configuration files in the following directory: $HOME/.init"

I tried putting an upstart job in that directory but it did not seem to be picked up. I am running 12.04 beta freshly upgraded with Upstart 1.5.

Is this functionality disabled or has it yet to be implemented?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu upstart Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2
Revision history for this message
Thomas Krüger (thkrueger) said :
#3

You have copied that quote from http://upstart.ubuntu.com/cookbook/#user-job .

Interestingly the next paragraph says that it is not enabled in Ubuntu up to 11.10, remember that this is the recent released version and the documentation may not reflect newer unreleased versions.

But even more interestingly the next section (4.2.2.1) tells you how to enable it.

Revision history for this message
Mike Williamson (sleepycat) said :
#4

OK I am going to give that a try.
I am running 12.04 so I knew that it wouldn't work for 11.10 but I was hoping that it would work for me. The cookbook doesn't give you much to work with. I am going to take a crack at enabling this and will post again and let you know what happens. Thanks for the answers!

Revision history for this message
Alex Bennée (ajbennee) said :
#5

@Mike: did you have any joy figuring out what you needed to change in the file to enable user jobs?

Revision history for this message
Alex Bennée (ajbennee) said :
#6

For reference I did find the mentioned packaged file: http://bazaar.launchpad.net/~upstart-devel/upstart/trunk/view/head:/dbus/Upstart.conf

Having made the changes and issued "initctl reload-configuration" attempts to start the user job returned with:

initctl: Rejected send message, 1 matched rules; type="method_call", sender=":1.243" (uid=394 pid=25884 comm="initctl start weathermon ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

Can you help with this problem?

Provide an answer of your own, or ask Mike Williamson for more information if necessary.

To post a message you must log in.