2017-08-29 15:13:58 -07:00
|
|
|
# Copyright (C) 2017 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
service statsd /system/bin/statsd
|
|
|
|
class main
|
2018-04-18 13:45:48 -07:00
|
|
|
socket statsdw dgram+passcred 0222 statsd statsd
|
2018-01-09 10:33:15 -08:00
|
|
|
user statsd
|
|
|
|
group statsd log
|
2018-01-18 16:37:10 -08:00
|
|
|
writepid /dev/cpuset/system-background/tasks
|
2018-01-12 00:00:15 -08:00
|
|
|
|
2018-06-05 14:20:35 -07:00
|
|
|
on property:ro.statsd.enable=false
|
|
|
|
stop statsd
|
|
|
|
|
2018-01-12 00:00:15 -08:00
|
|
|
on post-fs-data
|
|
|
|
# Create directory for statsd
|
2018-03-27 10:30:11 -07:00
|
|
|
mkdir /data/misc/stats-data/ 0770 statsd system
|
|
|
|
mkdir /data/misc/stats-service/ 0770 statsd system
|
2019-02-04 17:25:45 -08:00
|
|
|
mkdir /data/misc/stats-active-metric/ 0770 statsd system
|
2019-01-18 10:09:33 -08:00
|
|
|
mkdir /data/misc/train-info/ 0770 statsd system
|