I have my xyz.conf upstart config file in my $HOME/.init directory. When I run "start xyz" I get this error:
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.56" (uid=1001 pid=11389 comm="start xyz ") 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")
Thats what inside of my xyz.conf:
start on startup
stop on shutdown
env HOME=/home/qwerty
setuid qwerty
setgid qwerty
exec $HOME/xyz/xyz
I am using Upstart 1.5 and "qwerty" is non-privileged user. Is there a solution except using su/sudo/start-stop-daemon?