aboutsummaryrefslogtreecommitdiffstats
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-23 15:32:05 -0700
commit26ba552614d21fb5aa8ecc3eb41ad3ca30f709ec (patch)
treebb1bb07cc655b93b8f9a498d773723d8eb6c8cc6
parent0d8d69a288aa26e32662889ae756433021b31ee6 (diff)
downloadmeta-openembedded-contrib-26ba552614d21fb5aa8ecc3eb41ad3ca30f709ec.tar.gz
meta-openembedded-contrib-26ba552614d21fb5aa8ecc3eb41ad3ca30f709ec.tar.bz2
meta-openembedded-contrib-26ba552614d21fb5aa8ecc3eb41ad3ca30f709ec.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>
-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]