launching a daemon in init

200 views
Skip to first unread message

Deva

unread,
Feb 24, 2010, 3:43:51 PM2/24/10
to android-porting
Hi,

When I try to start a daemon in init.rc, I get below error, despite
the files are present with all previleges..
init: cannot execve('/system/bin/trace_daemon.out'): No such file or
directory


any hint why .out will throw such error?? I've seen user side
processes like a.out were lauched in various platforms..

btw, Added below in init.rc
service trace_d /system/bin/trace_daemon.out
user root
group audio
oneshot

Thanks,
Deva

Deva R

unread,
Feb 24, 2010, 4:46:27 PM2/24/10
to android-porting, android...@googlegroups.com

btw,

- the files are present with all permissions enabled.
- manual invocation from android shell or busybox shell, throws same error..

btw, i use codesourcery tool chain, to generate .out.
will this be a problem,  and should i use mydroid/prebuilt/toolchain/linux-x86/.... ??

Thanks,
Deva


yfwong

unread,
Feb 26, 2010, 12:29:25 PM2/26/10
to android-porting
Inside init.rc, did you run chmod after mounting /system partition?
chmod 0777 /system/bin/trace_daemon.out

On Feb 25, 5:46 am, Deva R <r.deva...@gmail.com> wrote:
> btw,
>
> - the files are present with all permissions enabled.
> - manual invocation from android shell or busybox shell, throws same error..
>
> btw, i use codesourcery tool chain, to generate .out.
> will this be a problem,  and should i use
> mydroid/prebuilt/toolchain/linux-x86/.... ??
>
> Thanks,
> Deva
>

> On Thu, Feb 25, 2010 at 2:13 AM, Deva <r.deva...@gmail.com> wrote:
> > Hi,
>
> > When I try to start a daemon in init.rc, I get below error, despite
> > the files are present with all previleges..
> > init: cannot execve('/system/bin/trace_daemon.out'): No such file or
> > directory
>
> > any hint why .out will throw such error?? I've seen user side
> > processes like a.out were lauched in various platforms..
>
> > btw, Added below in init.rc
> > service trace_d /system/bin/trace_daemon.out
> >    user root
> >    group audio
> >    oneshot
>
> > Thanks,
> > Deva
>
> > --

> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting

Deva R

unread,
Mar 2, 2010, 6:40:36 PM3/2/10
to yfwo...@gmail.com, android-porting
Hi,
The problem is -> i've built user side binaries with codesourcery toolchain, with all universal linux system libraries included.
so, when i launch on android (manually on shell or via init.rc), it doest execute at all, due to lib mismatch

now built with android toolchain
/mydroid/prebuilt/linux-x86/...

and its launched fine.

THanks for the help.

Regards,
Deva

Reply all
Reply to author
Forward
0 new messages