mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 00:46:58 +02:00
Merge pull request #49 from philips/restart-update-engine-on-failure
Restart update engine on failure
This commit is contained in:
commit
c80fc74c9b
@ -3,7 +3,7 @@
|
|||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI="4"
|
EAPI="4"
|
||||||
CROS_WORKON_COMMIT="0e2d05ca5c6bf202e1936b94c17de2df1fe22ec1"
|
CROS_WORKON_COMMIT="c0df3a6ae153ab75644ffea5034fcc6aa1c37c26"
|
||||||
CROS_WORKON_PROJECT="coreos/init"
|
CROS_WORKON_PROJECT="coreos/init"
|
||||||
CROS_WORKON_LOCALNAME="init"
|
CROS_WORKON_LOCALNAME="init"
|
||||||
|
|
||||||
|
@ -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
|
@ -6,7 +6,7 @@ CROS_WORKON_COMMIT="08a60bd76c1a4ad8e59cf3e29b43a11c857e1bcd"
|
|||||||
CROS_WORKON_PROJECT="coreos/update_engine"
|
CROS_WORKON_PROJECT="coreos/update_engine"
|
||||||
CROS_WORKON_REPO="git://github.com"
|
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"
|
DESCRIPTION="Chrome OS Update Engine"
|
||||||
HOMEPAGE="http://www.chromium.org/"
|
HOMEPAGE="http://www.chromium.org/"
|
||||||
@ -80,6 +80,8 @@ src_install() {
|
|||||||
|
|
||||||
use delta_generator && dobin delta_generator
|
use delta_generator && dobin delta_generator
|
||||||
|
|
||||||
|
systemd_dounit "${FILESDIR}"/update-engine.service
|
||||||
|
|
||||||
insinto /usr/share/dbus-1/services
|
insinto /usr/share/dbus-1/services
|
||||||
doins org.chromium.UpdateEngine.service
|
doins org.chromium.UpdateEngine.service
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ EAPI="4"
|
|||||||
CROS_WORKON_PROJECT="coreos/update_engine"
|
CROS_WORKON_PROJECT="coreos/update_engine"
|
||||||
CROS_WORKON_REPO="git://github.com"
|
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"
|
DESCRIPTION="Chrome OS Update Engine"
|
||||||
HOMEPAGE="http://www.chromium.org/"
|
HOMEPAGE="http://www.chromium.org/"
|
||||||
@ -79,6 +79,8 @@ src_install() {
|
|||||||
|
|
||||||
use delta_generator && dobin delta_generator
|
use delta_generator && dobin delta_generator
|
||||||
|
|
||||||
|
systemd_dounit "${FILESDIR}"/update-engine.service
|
||||||
|
|
||||||
insinto /usr/share/dbus-1/services
|
insinto /usr/share/dbus-1/services
|
||||||
doins org.chromium.UpdateEngine.service
|
doins org.chromium.UpdateEngine.service
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user