I've been struggling, trying to get my Mediatomb server to start automatically on Upstart run level 2. I can't figure it out. I guess Upstart is still new to me and I don't understand it. I even read the whole manual and it is vague and never mentions any of the inner workings of how things work.
I can obviously run mediatomb with this command and so getting it to run is not my question:
sudo mediatomb --config /etc/mediatomb/config.xml
mediatomb --config ~/.mediatomb/config.xml
I know Upstart supposedly will start services as superuser but what happens when running Upstart commands as a normal user? Do priviledges get escalated? I can't seem to figure it out.
These commands don't work:
service mediatomb start /etc/init.d/mediatomb start sudo initctl start mediatomb (says it started but not really)
To me, this all seems to be some kind of permissions issue but I don't understand enough about Upstart to figure this out. Very frustrating.
me@linux:/etc/init$ start mediatomb start: Rejected send message, 1 matched rules; type="method_call", sender=":1.58" (uid=1000 pid=2665 comm="start mediatomb ") 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")