|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
.service file issueHi 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@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@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@... http://lists.freedesktop.org/mailman/listinfo/dbus |
|
|
Re: .service file issueWhere 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@...> wrote: Hi all, _______________________________________________ dbus mailing list dbus@... http://lists.freedesktop.org/mailman/listinfo/dbus |
|
|
Re: .service file issueKaustubh Atrawalkar wrote:
> 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) Hi, I've got v. 1.2.12 on Ubuntu 9.04. The file is in '/usr/share/dbus-1/services/' named 'com.alteeve.Tools.service'. Is there any docs on what parameters are valid in the newer version of .service files? I was checking the other .service files in the directory while trying to sort out my issue and I didn't see the 'user=' pragma elsewhere. Thanks! I'm still stuck though. :) Madi _______________________________________________ dbus mailing list dbus@... http://lists.freedesktop.org/mailman/listinfo/dbus |
|
|
Re: .service file issueKaustubh Atrawalkar wrote:
> 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) Kaustubh, you sir win a prize. :) After writing my last reply, I double-checked the location of .service files on my system and sure enough, there was indeed a 'system-services' directory. I saw other .service's in the old directory and figured that was were it had to go. Then, I thought, "wait, I am connecting to the 'system' bus. Duh!". Sure enough, I moved my .service file to the 'system-services' directory and it immediately complained of not having a 'User=' directive. I added one and bingo, it worked! If you are ever in Toronto, Canada, I owe you a coffee. :) Madi _______________________________________________ dbus mailing list dbus@... http://lists.freedesktop.org/mailman/listinfo/dbus |
|
|
Re: .service file issueHi Madi,
Great you finally got it working ! And yes you surely owe me a coffee ;) Whenever I am coming to Cananda i m surely gonna ask you for that. And btw nice way to thank people. Ping back again for any more issues .. I would love to win coffees :) --Regards Kaustubh On Fri, Oct 9, 2009 at 8:37 PM, Madison Kelly <linux@...> wrote:
_______________________________________________ dbus mailing list dbus@... http://lists.freedesktop.org/mailman/listinfo/dbus |
| Free embeddable forum powered by Nabble | Forum Help |