summaryrefslogtreecommitdiff
path: root/cloudinit/distros/gentoo.py
diff options
context:
space:
mode:
authorckonstanski <ckonstanski@pippiandcarlos.com>2017-10-24 19:38:42 -0600
committerScott Moser <smoser@brickies.net>2017-10-26 11:34:36 -0400
commita90a8b1cb3104ee3250ac79d6e25a9ff4f527baa (patch)
tree6a18ab13ae023c1d3e6fd26d9d51e13929691efc /cloudinit/distros/gentoo.py
parent17a15f9e0ae78e4fc4e24fab0caebdf78f06ef66 (diff)
downloadvyos-cloud-init-a90a8b1cb3104ee3250ac79d6e25a9ff4f527baa.tar.gz
vyos-cloud-init-a90a8b1cb3104ee3250ac79d6e25a9ff4f527baa.zip
Gentoo: Use "rc-service" rather than "service".
The "service" command will be disappearing soon from Gentoo"s openrc package. The "rc-service" command is preferred. LP: #1727121
Diffstat (limited to 'cloudinit/distros/gentoo.py')
-rw-r--r--cloudinit/distros/gentoo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/distros/gentoo.py b/cloudinit/distros/gentoo.py
index 0ad2f032..dc57717d 100644
--- a/cloudinit/distros/gentoo.py
+++ b/cloudinit/distros/gentoo.py
@@ -24,7 +24,7 @@ class Distro(distros.Distro):
network_conf_fn = '/etc/conf.d/net'
resolve_conf_fn = '/etc/resolv.conf'
hostname_conf_fn = '/etc/conf.d/hostname'
- init_cmd = ['service'] # init scripts
+ init_cmd = ['rc-service'] # init scripts
def __init__(self, name, cfg, paths):
distros.Distro.__init__(self, name, cfg, paths)