aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authortexierp <texier.pj2@gmail.com>2018-05-15 20:05:11 +0200
committerKhem Raj <raj.khem@gmail.com>2018-05-18 12:30:56 -0700
commit56bb36b9bfcc70879fa4ef393068181f4f216447 (patch)
tree6a83c34707e83f621ae4ff93c658da1d07b9ffd8 /meta-oe
parent9a971820ef4735fcfb7d3a8de9a168eb95d901bd (diff)
downloadmeta-openembedded-contrib-56bb36b9bfcc70879fa4ef393068181f4f216447.tar.gz
meta-openembedded-contrib-56bb36b9bfcc70879fa4ef393068181f4f216447.tar.bz2
meta-openembedded-contrib-56bb36b9bfcc70879fa4ef393068181f4f216447.zip
minicoredumper: fixes for sysvinit and systemd
The sysv initscript and systemd service assumes minicoredumper is installed in /usr/bin/. In our case minicoredumper is installed in /usr/sbin/ by default. Therefore, fix this path. Signed-off-by: Pierre-Jean TEXIER <texier.pj2@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.init2
-rw-r--r--meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.service2
2 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.init b/meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.init
index 90ef7fa373..9c96e3156a 100644
--- a/meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.init
+++ b/meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.init
@@ -22,7 +22,7 @@
case "$1" in
start)
- echo "|/usr/bin/minicoredumper %p %u %g %s %t %h %e" > /proc/sys/kernel/core_pattern
+ echo "|/usr/sbin/minicoredumper %p %u %g %s %t %h %e" > /proc/sys/kernel/core_pattern
;;
stop)
echo "core" > /proc/sys/kernel/core_pattern
diff --git a/meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.service b/meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.service
index 851b54ccc1..45d098f293 100644
--- a/meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.service
+++ b/meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.service
@@ -4,7 +4,7 @@ Description=Enable minicoredumper.
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=/bin/sh -c '/bin/echo "|/usr/bin/minicoredumper %%p %%u %%g %%s %%t %%h %%e" > /proc/sys/kernel/core_pattern'
+ExecStart=/bin/sh -c '/bin/echo "|/usr/sbin/minicoredumper %%p %%u %%g %%s %%t %%h %%e" > /proc/sys/kernel/core_pattern'
ExecStop=/bin/sh -c '/bin/echo "core" > /proc/sys/kernel/core_pattern'
[Install]