projects
/
external
/
corewatcher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
075fd7d
)
Set up core_pattern and core_uses_pid for corewatcher if .debugmode file exists.
author
yucai
<yucai.yu@intel.com>
Wed, 17 Apr 2013 07:31:26 +0000
(
00:31
-0700)
committer
yucai
<yucai.yu@intel.com>
Wed, 17 Apr 2013 07:31:26 +0000
(
00:31
-0700)
src/corewatcher.service.in
patch
|
blob
|
history
diff --git
a/src/corewatcher.service.in
b/src/corewatcher.service.in
index
0182ba4
..
c3b708b
100644
(file)
--- 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]