From: yucai Date: Wed, 17 Apr 2013 07:31:26 +0000 (-0700) Subject: Set up core_pattern and core_uses_pid for corewatcher if .debugmode file exists. X-Git-Tag: submit/tizen_2.1/20130514.052150^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0bd606c95b9f855a4b717fd94089992e9581e12;p=external%2Fcorewatcher.git Set up core_pattern and core_uses_pid for corewatcher if .debugmode file exists. --- diff --git a/src/corewatcher.service.in b/src/corewatcher.service.in index 0182ba4..c3b708b 100644 --- a/src/corewatcher.service.in +++ b/src/corewatcher.service.in @@ -2,9 +2,12 @@ Description=Nitra corefile monitor for collecting crash data DefaultDependencies=no After=sysinit.target +ConditionPathExists=/opt/etc/.debugmode [Service] Type=forking +ExecStartPre=/sbin/sysctl kernel.core_pattern=/var/lib/corewatcher/core_%%e_%%t +ExecStartPre=/sbin/sysctl kernel.core_uses_pid=1 ExecStart=@prefix@/sbin/corewatcher [Install]