start gives really poor error message when you are not root

Bug #1001874 reported by Ivan Sorokin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
upstart
Confirmed
Undecided
Unassigned

Bug Description

I've just created my first upstart script. "start" program gives really poor error message when you are not root:

ivan@liberty:/etc/init$ start ivan-cache-create
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.60" (uid=1000 pid=2848 comm="start ivan-cache-create ") 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")

It took some time to figure out what I was doing wrong. Could upstart give more clear error message? Like apt-get:

E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

I agree, this should probably be a Wishlist priority.

Changed in upstart:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.