From 604bc40d8a70612e21582b6b486bcea05f2bb84d Mon Sep 17 00:00:00 2001 From: Alexys Jacob Date: Fri, 19 Jan 2018 17:13:10 +0100 Subject: [PATCH] dist: migrate gentoo variant setup scripts from /sbin/service to /sbin/rc-service the 'service' binary has been removed from gentoo as per news 2017-10-13: https://gitweb.gentoo.org/data/gentoo-news.git/plain/2017-10-13-openrc-service-binary-removal/2017-10-13-openrc-service-binary-removal.en.txt this patch updates the scylla setup related scripts where it was used and make use of the 'rc-service' binary instead Signed-off-by: Alexys Jacob Message-Id: <20180119161310.15435-1-ultrabug@gentoo.org> --- dist/common/scripts/node_exporter_install | 2 +- dist/common/scripts/scylla_cpuscaling_setup | 2 +- dist/common/scripts/scylla_ntp_setup | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/common/scripts/node_exporter_install b/dist/common/scripts/node_exporter_install index 274f9e06b3..387c4df021 100755 --- a/dist/common/scripts/node_exporter_install +++ b/dist/common/scripts/node_exporter_install @@ -35,7 +35,7 @@ if is_gentoo_variant; then echo "net-analyzer/prometheus-node_exporter does not install systemd service files, please fill a bug if you need them." else rc-update add prometheus-node_exporter default - service prometheus-node_exporter start + rc-service prometheus-node_exporter start fi else version=0.14.0 diff --git a/dist/common/scripts/scylla_cpuscaling_setup b/dist/common/scripts/scylla_cpuscaling_setup index 14ee58f0cc..5241a92969 100755 --- a/dist/common/scripts/scylla_cpuscaling_setup +++ b/dist/common/scripts/scylla_cpuscaling_setup @@ -24,7 +24,7 @@ elif is_gentoo_variant; then systemctl start cpupower-frequency-set.service else rc-update add cpupower default - service cpupower start + rc-service cpupower start fi else yum install -y cpupowerutils || true diff --git a/dist/common/scripts/scylla_ntp_setup b/dist/common/scripts/scylla_ntp_setup index 69f1f49b4c..b12e6675b9 100755 --- a/dist/common/scripts/scylla_ntp_setup +++ b/dist/common/scripts/scylla_ntp_setup @@ -44,7 +44,7 @@ elif is_gentoo_variant; then systemctl start sntpd.service else rc-update add ntpd default - service ntpd start + rc-service ntpd start fi else yum install -y ntp ntpdate || true