aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authortexierp <texier.pj2@gmail.com>2018-05-15 20:05:11 +0200
committerArmin Kuster <akuster808@gmail.com>2018-06-14 20:11:13 -0700
commita4ec81345b525c4b978348d33110802c2e76264f (patch)
tree22aa2b390df6bfd8c14029b842ee3a69b70fe317 /meta-oe
parent1e5368d0bf5335211e4dc6f91efc24c19864c585 (diff)
downloadmeta-openembedded-a4ec81345b525c4b978348d33110802c2e76264f.tar.gz
meta-openembedded-a4ec81345b525c4b978348d33110802c2e76264f.tar.bz2
meta-openembedded-a4ec81345b525c4b978348d33110802c2e76264f.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> (cherry picked from commit 26ba552614d21fb5aa8ecc3eb41ad3ca30f709ec) 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 90ef7fa37..9c96e3156 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 851b54ccc..45d098f29 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]