.service file issue

Madison Kelly linux at alteeve.com
Thu Oct 8 07:54:34 PDT 2009


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


More information about the dbus mailing list