CentOS support and enabled memcached at startup.

see #98
This commit is contained in:
Antoine Nguyen
2017-02-09 16:31:14 +01:00
parent 5f36d6231f
commit 8791766052
3 changed files with 12 additions and 5 deletions

View File

@@ -136,10 +136,7 @@ class Installer(object):
if self.no_daemon:
return
name = self.get_daemon_name()
system.enable_service(name)
code, output = utils.exec_cmd("service {} status".format(name))
action = "start" if code else "restart"
utils.exec_cmd("service {} {}".format(name, action))
system.enable_and_start_service(name)
def run(self):
"""Run the installer."""