Where u have placed the service file? And which dbus version are u using? <br> <br>For dbus 1-2-3 & higher the service file should be placed in - {prefix}/shared/dbus-1/system-services<br>for lower versions the service file should be placed in - {prefix}/shared/dbus-1/services<br>
<br>Also for dbus-1-2-3 & higher versions the service file should also contain one more key <br><br>User=root<br><br>Check these and get back if doesn't work <br><br>Regards<br>Kaustubh (aka silverroots)<br><br><div class="gmail_quote">
On Thu, Oct 8, 2009 at 8:24 PM, Madison Kelly <span dir="ltr"><<a href="mailto:linux@alteeve.com">linux@alteeve.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
I suspect I am doing something terribly stupid, but I can't seem to<br>
see it. :)<br>
<br>
I've got a simple .service file:<br>
<br>
--------------------------------------<br>
digimer@lework:/usr/share/dbus-1/services$ cat com.alteeve.Tools.service<br>
[D-BUS Service]<br>
Name=com.alteeve.Tools<br>
Exec=/usr/share/perl5/AN/<a href="http://an_dbus_server.pl" target="_blank">an_dbus_server.pl</a><br>
--------------------------------------<br>
<br>
The 'Exec' file is there and is executable:<br>
<br>
--------------------------------------<br>
digimer@lework:/usr/share/dbus-1/services$ ls -lah<br>
/usr/share/perl5/AN/<a href="http://an_dbus_server.pl" target="_blank">an_dbus_server.pl</a><br>
-rwxr-xr-x 1 digimer digimer 3.9K 2009-10-08 10:03<br>
/usr/share/perl5/AN/<a href="http://an_dbus_server.pl" target="_blank">an_dbus_server.pl</a><br>
--------------------------------------<br>
<br>
So far as I understand, that should be enough to make the service<br>
work. However, when I run a test:<br>
<br>
--------------------------------------<br>
$ ./<a href="http://test.pl" target="_blank">test.pl</a><br>
Will now test AN::Tools on linux.<br>
ok 1 - use AN::Tools;<br>
Net::DBus loaded.<br>
org.freedesktop.DBus.Error.ServiceUnknown: The name com.alteeve.Tools<br>
was not provided by any .service files<br>
1..1<br>
# Looks like your test died just after 1.<br>
--------------------------------------<br>
<br>
As you can see, it's complaining that there is no .service file for<br>
my service "com.alteeve.Tools". It's there though, and the ownership and<br>
permissions of my .service file matches the rest of the .service files.<br>
<br>
This is a perl program using Net::DBus, as you can see.<br>
<br>
Any idea what I am doing wrong?<br>
<br>
Thanks!<br>
<br>
Madi<br>
_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
</blockquote></div><br>