Ejemplo n.º 1
0
 def enable_service(name, client):
     if FleetCtl._has_service(name, client):
         fleet_name = FleetCtl._get_unit_name(name, client)
         client.run('systemctl enable {0}'.format(fleet_name))
     else:
         Systemd.enable_service(name, client)
Ejemplo n.º 2
0
 def enable_service(name, client):
     if FleetCtl._has_service(name, client):
         fleet_name = FleetCtl._get_unit_name(name, client)
         client.run('systemctl enable {0}'.format(fleet_name))
     else:
         Systemd.enable_service(name, client)
Ejemplo n.º 3
0
 def enable_service(name, client):
     fleet_name = FleetCtl._get_unit_name(name, client)
     return Systemd.enable_service(fleet_name, client)