Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
cloud-init.451
suseSetInitCmd.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File suseSetInitCmd.patch of Package cloud-init.451
--- cloudinit/distros/opensuse.py.orig +++ cloudinit/distros/opensuse.py @@ -43,6 +43,7 @@ class Distro(distros.Distro): resolve_conf_fn = '/etc/resolv.conf' tz_local_fn = '/etc/localtime' systemd_locale_conf_fn = '/etc/locale.conf' + init_cmd = ['service'] def __init__(self, name, cfg, paths): distros.Distro.__init__(self, name, cfg, paths) @@ -50,9 +51,13 @@ class Distro(distros.Distro): # calls from repeatly happening (when they # should only happen say once per instance...) self._runner = helpers.Runners(paths) + cfg['ssh_svcname'] = 'sshd' self.osfamily = 'suse' self.systemdDist = util.which('systemctl') - + if self.systemdDist: + self.init_cmd = ['systemctl'] + cfg['ssh_svcname'] = 'sshd.service' + def apply_locale(self, locale, out_fn=None): if self.systemdDist: if not out_fn:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor