[Olsr-dev] Writing pid to lockfile on Android

Charles Boyd (spam-protected)
Wed Jul 14 09:50:47 CEST 2010


Hello everybody,

I am trying to write a simple Android application which has to be able to
start and stop olsrd on command. There is a problem with stopping olsrd when
it is running on Android because (as far as I can tell) it does not write a
PID-file since Android does not have a /var directory, which makes killing
the process difficult.

However, it does write the olsrd.conf lockfile to /data/local for Android.
[1]

Could we have olsrd write its pid to the lockfile on Android? This seems
like the easiest solution.

Thanks.

- Charles


[1]
http://olsr.org/git/?p=olsrd.git;a=blobdiff;f=src/main.c;h=96a7e48a2199ddaf5e6e8c5f6e6aac8393ba172b;hp=eba8e7f5d51fa127eb56aff672f9ac3212804c11;hb=a7030712f41666cc267c62c77b37ceb14d469a05;hpb=c2045fe22fa63fd9d572694fce6e839cc58ff315
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20100714/1b32f827/attachment.html>


More information about the Olsr-dev mailing list