Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Commit be29bd2

Browse files
committed
CI: reload services & start vc-throttler service with sudo
Run systemctl daemon-reload, in case the service files already existed and were installed again. Also we need to start systemd services with sudo. Otherwise, it will fail. Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
1 parent 23c15d2 commit be29bd2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.ci/install_ksm_throttler.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ clone_build_and_install "github.com/kata-containers/ksm-throttler"
2727
# to be dynmaically changing the KSM settings under us - we need control of them
2828
# ourselves
2929
if [[ ! $METRICS_CI ]]; then
30-
systemctl enable vc-throttler.service
31-
systemctl start vc-throttler.service
30+
sudo systemctl daemon-reload
31+
sudo systemctl enable vc-throttler.service
32+
sudo systemctl start vc-throttler.service
3233
fi
3334

3435
# Stop and disable cc-proxy service in case the service files
3536
# are installed.
36-
systemctl stop cc-proxy || true
37-
systemctl disable cc-proxy || true
37+
sudo systemctl daemon-reload
38+
sudo systemctl stop cc-proxy || true
39+
sudo systemctl disable cc-proxy || true

0 commit comments

Comments
 (0)