Start systemd services properly with cfn-init tool

Signed-off-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
Steven Dake 2012-04-12 21:16:42 -07:00
parent 2a9a87dc3e
commit 31ae00df42
1 changed files with 1 additions and 0 deletions

View File

@ -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: