diff --git a/Makefile.am b/Makefile.am index 29e7f45e..11479678 100644 --- a/Makefile.am +++ b/Makefile.am @@ -37,15 +37,16 @@ AM_CFLAGS += -fprofile-arcs -ftest-coverage LDADD += -lgcov endif -sbin_PROGRAMS = update_engine +libexec_PROGRAMS = update_engine bin_PROGRAMS = update_engine_client if ENABLE_DELTA_GENERATOR bin_PROGRAMS += delta_generator endif sbin_SCRIPTS = coreos-postinst \ - coreos-setgoodroot \ - systemd/update_engine_stub + coreos-setgoodroot + +libexec_SCRIPTS= systemd/update_engine_stub noinst_LIBRARIES = libupdate_engine.a diff --git a/systemd/update-engine-stub.service b/systemd/update-engine-stub.service index c9dc071a..2b79a001 100644 --- a/systemd/update-engine-stub.service +++ b/systemd/update-engine-stub.service @@ -5,7 +5,7 @@ ConditionPathExists=/usr/.noupdate [Service] Type=oneshot -ExecStart=/usr/sbin/update_engine_stub +ExecStart=/usr/libexec/update_engine_stub [Install] WantedBy=multi-user.target diff --git a/systemd/update-engine.service b/systemd/update-engine.service index 423fe83d..cf0ffef6 100644 --- a/systemd/update-engine.service +++ b/systemd/update-engine.service @@ -6,7 +6,7 @@ ConditionPathExists=!/usr/.noupdate [Service] Type=dbus BusName=com.coreos.update1 -ExecStart=/usr/sbin/update_engine -foreground -logtostderr +ExecStart=/usr/libexec/update_engine -foreground -logtostderr BlockIOWeight=100 Restart=always RestartSec=30