mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 19:21:01 +00:00
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 <ultrabug@gentoo.org> Message-Id: <20180119161310.15435-1-ultrabug@gentoo.org>
This commit is contained in:
2
dist/common/scripts/node_exporter_install
vendored
2
dist/common/scripts/node_exporter_install
vendored
@@ -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
|
||||
|
||||
2
dist/common/scripts/scylla_cpuscaling_setup
vendored
2
dist/common/scripts/scylla_cpuscaling_setup
vendored
@@ -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
|
||||
|
||||
2
dist/common/scripts/scylla_ntp_setup
vendored
2
dist/common/scripts/scylla_ntp_setup
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user