'Export logs for ``service_name`` to ``target_path`` compressed using
``gzip``.'

def export_flocker(self, service_name, target_path):

    open((target_path + '_startup.gz'), 'w').close()
    check_call('journalctl    --all    --output    cat    --unit    {}.service    |    gzip'.format(service_name), stdout=open((target_path + '_eliot.gz'), 'w'), shell=True)
