Creating a .service File

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Oct 18 01:35:48 PDT 2011


On Mon, 17 Oct 2011 at 23:56:17 -0500, Justin Brown wrote:
> The .service file contains
> 
> [D-Bus Service]
> Name=org.fandingo.PMP
> Exec=/home/justin/code/python/pmp/Server.py
                                    ^^^^^^
> User=justin
> 
> pmpserver.py is executable and has the correct shebang.
  ^^^^^^^^^

Is it Server or pmpserver? Make your mind up :-)

If this is a session bus service (which it is, because you put the .service
file in .../dbus-1/services and not .../dbus-1/system-services), the User
key is unnecessary and might cause problems - session services are always
run as you.

If you're not sure whether the dbus-daemon is loading the new service file,
you could log out and back in (but if you do that and it works, please reply
and say so - that'd be a bug).

    S


More information about the dbus mailing list