[maemo-developers] [maemo-developers] Re: D-BUS daemons

From: Brad Burleson bradb667 at gmail.com
Date: Mon Jul 31 08:46:13 EEST 2006
Sorry to be so lame as to reply to my own post, but I've since discovered
that adding the following to the init script solved my problem:

start code-->
if [ -e /etc/osso-af-init/af-defines.sh ]
then
  source /etc/osso-af-init/af-defines.sh
else
  echo "/etc/osso-af-init/af-defines.sh not found!"
  exit 1
fi

for i in /etc/osso-af-init/*.defs
do
  source $i
done

set -e
<--- end code

Is this reasonable?

Thanks,

Brad.

On 7/30/06, Brad Burleson <bradb667 at gmail.com> wrote:
>
>  Hey all-
>
> I'm trying to write a daemon that monitors some D-Bus messages.
> Everything is working great _except_ the init script doesn't seem to run at
> boot.  If I open an xterm, login as root, and run it manually, it starts and
> stays running.
>
> This application has no GUI so I didn't create a desktop file, but just in
> case I've setup a service file and install it.
>
> It seems something is different in the environment of the xterm compared
> to the environment during boot.
>
> Can anyone share any ideas?
>
> Also, any thoughts to how deamons should log?  I see syslog isn't setup.
>
> Thanks,
>
> Brad.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20060730/6d9d060c/attachment.htm 
More information about the maemo-developers mailing list