Commit 8bead751 authored by Florent Revest's avatar Florent Revest

mce: use a custom service for faster boot time

parent 9f17c9a9
From ad01f509d9787e933849d390f454b794169baa95 Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com>
Date: Wed, 4 Nov 2015 18:09:47 +0100
Subject: [PATCH] mce.service: use a 2 seconds timeout
---
systemd/mce.service | 1 +
1 file changed, 1 insertion(+)
diff --git a/systemd/mce.service b/systemd/mce.service
index e717c15..c724d9e 100644
--- a/systemd/mce.service
+++ b/systemd/mce.service
@@ -10,6 +10,7 @@ Conflicts=shutdown.target
[Service]
Type=notify
ExecStart=/usr/sbin/mce --systemd
+TimeoutSec=2
Restart=always
[Install]
--
2.6.2
[Unit]
Description=Mode Control Entity (MCE)
DefaultDependencies=no
Requires=dbus.socket
After=dbus.socket
After=local-fs.target
Conflicts=shutdown.target
[Service]
Type=notify
ExecStart=/usr/sbin/mce --systemd
TimeoutSec=2
Restart=always
[Install]
WantedBy=multi-user.target
...@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" ...@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
SRC_URI = "git://git.merproject.org/mer-core/mce.git;protocol=https \ SRC_URI = "git://git.merproject.org/mer-core/mce.git;protocol=https \
file://001-Fixes_build.patch \ file://001-Fixes_build.patch \
file://0002-mce.service-use-a-2-seconds-timeout.patch" file://mce.service"
SRCREV = "ad535db76b7443febaf4f97328eb1968a3f1d8cc" SRCREV = "ad535db76b7443febaf4f97328eb1968a3f1d8cc"
PR = "r1" PR = "r1"
PV = "+git${SRCREV}" PV = "+git${SRCREV}"
...@@ -15,6 +15,7 @@ DEPENDS += "glib-2.0 libdsme libiphb systemd dbus-glib dbus libngf" ...@@ -15,6 +15,7 @@ DEPENDS += "glib-2.0 libdsme libiphb systemd dbus-glib dbus libngf"
do_install() { do_install() {
oe_runmake install DESTDIR=${D} oe_runmake install DESTDIR=${D}
cp ../mce.service ${D}/lib/systemd/system/mce.service
} }
FILES_${PN} += " /run/mce /lib/systemd/system " FILES_${PN} += " /run/mce /lib/systemd/system "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment