Merge pull request #49 from philips/restart-update-engine-on-failure

Restart update engine on failure
This commit is contained in:
Brandon Philips 2013-07-03 15:15:57 -07:00
commit c80fc74c9b
6 changed files with 21 additions and 3 deletions

View File

@ -3,7 +3,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
CROS_WORKON_COMMIT="0e2d05ca5c6bf202e1936b94c17de2df1fe22ec1"
CROS_WORKON_COMMIT="c0df3a6ae153ab75644ffea5034fcc6aa1c37c26"
CROS_WORKON_PROJECT="coreos/init"
CROS_WORKON_LOCALNAME="init"

View File

@ -0,0 +1,14 @@
[Unit]
Description=Update Engine
ConditionVirtualization=!container
[Service]
Type=dbus
BusName=org.chromium.UpdateEngine
ExecStart=/usr/sbin/update_engine -foreground -logtostderr -no_connection_manager
BlockIOWeight=100
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target

View File

@ -6,7 +6,7 @@ CROS_WORKON_COMMIT="08a60bd76c1a4ad8e59cf3e29b43a11c857e1bcd"
CROS_WORKON_PROJECT="coreos/update_engine"
CROS_WORKON_REPO="git://github.com"
inherit toolchain-funcs cros-debug cros-workon scons-utils
inherit toolchain-funcs cros-debug cros-workon scons-utils systemd
DESCRIPTION="Chrome OS Update Engine"
HOMEPAGE="http://www.chromium.org/"
@ -80,6 +80,8 @@ src_install() {
use delta_generator && dobin delta_generator
systemd_dounit "${FILESDIR}"/update-engine.service
insinto /usr/share/dbus-1/services
doins org.chromium.UpdateEngine.service

View File

@ -5,7 +5,7 @@ EAPI="4"
CROS_WORKON_PROJECT="coreos/update_engine"
CROS_WORKON_REPO="git://github.com"
inherit toolchain-funcs cros-debug cros-workon scons-utils
inherit toolchain-funcs cros-debug cros-workon scons-utils systemd
DESCRIPTION="Chrome OS Update Engine"
HOMEPAGE="http://www.chromium.org/"
@ -79,6 +79,8 @@ src_install() {
use delta_generator && dobin delta_generator
systemd_dounit "${FILESDIR}"/update-engine.service
insinto /usr/share/dbus-1/services
doins org.chromium.UpdateEngine.service