Start systemd services properly with cfn-init tool
Signed-off-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
parent
2a9a87dc3e
commit
31ae00df42
|
@ -422,6 +422,7 @@ class ServicesHandler(object):
|
|||
def _handle_systemd_command(self, service, command):
|
||||
exe = "/bin/systemctl"
|
||||
cmd = ""
|
||||
service = '%s.service' % service
|
||||
if "enable" == command:
|
||||
cmd = "%s enable %s" % (exe, service)
|
||||
elif "disable" == command:
|
||||
|
|
Loading…
Reference in New Issue