| on property:persist.logd.logpersistd=logcatd |
| # all exec/services are called with umask(077), so no gain beyond 0700 |
| mkdir /data/misc/logd 0700 logd log |
| # logd for write to /data/misc/logd, log group for read from pstore (-L) |
| exec - logd log -- /system/bin/logcat -L -b ${persist.logd.logpersistd.buffer:-all} -v threadtime -v usec -v printable -D -f /data/misc/logd/logcat -r 1024 -n ${persist.logd.logpersistd.size:-256} |
| start logcatd |
| |
| on property:persist.logd.logpersistd=clear |
| stop logcatd |
| # logd for clear of only our files in /data/misc/logd |
| exec - logd log -- /system/bin/logcat -c -f /data/misc/logd/logcat -n ${persist.logd.logpersistd.size:-256} |
| setprop persist.logd.logpersistd "" |
| |
| on property:persist.logd.logpersistd=stop |
| stop logcatd |
| setprop persist.logd.logpersistd "" |
| |
| service logcatd /system/bin/logcat -b ${persist.logd.logpersistd.buffer:-all} -v threadtime -v usec -v printable -D -f /data/misc/logd/logcat -r 1024 -n ${persist.logd.logpersistd.size:-256} |
| class late_start |
| disabled |
| # logd for write to /data/misc/logd, log group for read from log daemon |
| user logd |
| group log |
| writepid /dev/cpuset/system-background/tasks |