From f0bd606c95b9f855a4b717fd94089992e9581e12 Mon Sep 17 00:00:00 2001 From: yucai Date: Wed, 17 Apr 2013 00:31:26 -0700 Subject: [PATCH] Set up core_pattern and core_uses_pid for corewatcher if .debugmode file exists. --- src/corewatcher.service.in | 3 +++ 1 file changed, 3 insertions(+) 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] -- 2.7.4