title: .Service File D-Bus
body: <p>I'm trying to auto-start a DBus service when my client program starts. I've setup a .service file, but it's not working.</p>
  
  <p>My service name is</p>
  
  <pre><code>org.fandingo.PMP
  </code></pre>
  
  <p>I register the name with a python server with </p>
  
  <pre><code> name = dbus.service.BusName('org.fandingo.PMP', session_bus)
   object = PMPService(session_bus, '/PMPService', PMPProxy())
  </code></pre>
  
  <p>I can connect to this fine if I manually run the server code with the following from the client</p>
  
  <pre><code>remote = bus.get_object('org.fandingo.PMP', '/PMPService')
  </code></pre>
  
  <p>So the server and client both work if invoked manually. If I just try the client, I get the following Python exception</p>
  
  <pre><code>dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.fandingo.PMP was not provided by any .service files
  </code></pre>
  
  <p>Here is my .service file </p>
  
  <pre><code>-rw-r--r--. root root unconfined_u:object_r:usr_t:s0   /usr/share/dbus-1/services/org.fandingo.PMP.service
  </code></pre>
  
  <p>These permissions and SELinux labels are identical to the other .service files.</p>
  
  <p>The .service file contents</p>
  
  <pre><code>[D-Bus Service]
  Name=org.fandingo.PMP
  Exec=/home/fandingo/code/python/pmp/src/pmpserver.py
  User=fandingo
  </code></pre>
  
  <p>pmpserver.py is executable and has the correct shebang. </p>
  
  <p>Does anyone see any problems with me configuration?</p>
  
  <p>Thanks,</p>