title: dbus systemctl error : GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.example.Interface was not provided by any .service files
body: <p>I am new to systemctl.
  I want to register a binary file using dbus with systemctl and use it.</p>
  <p>When the binary file created by cmake is executed, it works normally.</p>
  <p>However, if you run systemctl after registering the service file, it does not work properly.</p>
  <p>There are server, clientA, and B services to register systemctl.
  Here is the service file.</p>
  <pre><code>[Unit]
  Description=Server Service...
  After=network.target
  
  [Service]
  ExecStart=/opt/test/bin/dbusExample_Server
  ExecStop=/opt/test/bin/dbusExample_Server
  Restart=on-failure
  RestartSec=60
  
  [Install]
  WantedBy=multi-user.target
  </code></pre>
  <pre><code>[Unit]
  Description=Client A Service...
  After=network.target
  
  [Service]
  BusName=com.example.Interface
  ExecStart=/opt/test/bin/helloString
  ExecStop=/opt/test/bin/helloString
  Restart=on-failure
  RestartSec=60
  Environment=&quot;DISPLAY=:0&quot;
  
  [Install]
  WantedBy=multi-user.target
  </code></pre>
  <pre><code>[Unit]
  Description=Client B Service...
  After=network.target
  
  [Service]
  ExecStart=/opt/test/bin/B/dbusExample_Client_B
  ExecStop=/opt/test/bin/B/dbusExample_Client_B
  Restart=on-failure
  RestartSec=60
  Environment=&quot;DISPLAY=:0&quot;
  
  [Install]
  WantedBy=multi-user.target
  </code></pre>
  <p>I run.</p>
  <pre><code>sudo systemctl daemon-reload
  sudo systemctl start server.service
  sudo systemctl start clientA.service
  sudo systemctl start clientB.service
  </code></pre>
  <p>In my program, when qml is executed on client A and a message is input, a message is sent from the server, and a message is also received from client B.</p>
  <p>Enter a message and check it.</p>
  <pre><code>sudo systemctl status server.service
  sudo systemctl status clientA.service
  sudo systemctl status clientB.service
  </code></pre>
  <p>When I checked the status of clientA.service, I could see the following error.</p>
  <pre><code>GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.example.Interface was not provided by any .service files
  </code></pre>
  <p>The path to my .service file is as follows.</p>
  <pre><code>/lib/systemd/system
  </code></pre>
  <p>I checked that it should be in a different path through a search, and moved the following path</p>
  <pre><code>/.local/share/dbus-1/services
  /etc/systemd/system
  </code></pre>
  <p>But I haven't been able to verify that it works.</p>
  <p>What points do I need to fix for it to work properly? Any help would be greatly appreciated!</p>