.service file issue

Kaustubh Atrawalkar kaustubh.ra at gmail.com
Thu Oct 8 23:57:45 PDT 2009


Where u have placed the service file? And which dbus version are u using?

For dbus 1-2-3 & higher the service file should be placed in -
{prefix}/shared/dbus-1/system-services
for lower versions the service file should be placed in -
{prefix}/shared/dbus-1/services

Also for dbus-1-2-3 & higher versions the service file should also contain
one more key

User=root

Check these and get back if doesn't work

Regards
Kaustubh (aka silverroots)

On Thu, Oct 8, 2009 at 8:24 PM, Madison Kelly <linux at alteeve.com> wrote:

> Hi all,
>
>   I suspect I am doing something terribly stupid, but I can't seem to
> see it. :)
>
>   I've got a simple .service file:
>
> --------------------------------------
> digimer at lework:/usr/share/dbus-1/services$ cat com.alteeve.Tools.service
> [D-BUS Service]
> Name=com.alteeve.Tools
> Exec=/usr/share/perl5/AN/an_dbus_server.pl
> --------------------------------------
>
>   The 'Exec' file is there and is executable:
>
> --------------------------------------
> digimer at lework:/usr/share/dbus-1/services$ ls -lah
> /usr/share/perl5/AN/an_dbus_server.pl
> -rwxr-xr-x 1 digimer digimer 3.9K 2009-10-08 10:03
> /usr/share/perl5/AN/an_dbus_server.pl
> --------------------------------------
>
>   So far as I understand, that should be enough to make the service
> work. However, when I run a test:
>
> --------------------------------------
> $ ./test.pl
> Will now test AN::Tools on linux.
> ok 1 - use AN::Tools;
> Net::DBus loaded.
> org.freedesktop.DBus.Error.ServiceUnknown: The name com.alteeve.Tools
> was not provided by any .service files
> 1..1
> # Looks like your test died just after 1.
> --------------------------------------
>
>   As you can see, it's complaining that there is no .service file for
> my service "com.alteeve.Tools". It's there though, and the ownership and
> permissions of my .service file matches the rest of the .service files.
>
>   This is a perl program using Net::DBus, as you can see.
>
>   Any idea what I am doing wrong?
>
> Thanks!
>
> Madi
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20091009/5644c2e6/attachment.htm 


More information about the dbus mailing list