Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Unable to start escaped unit files #1154

@oxtopus

Description

@oxtopus

Or maybe it started, but I can't get status?

$ fleetctl load f-\\xc3\\xb6-o.service 
Unit f-\xc3\xb6-o.service loaded on 2970b762.../172.17.8.101
$ fleetctl start f-\\xc3\\xb6-o.service 
Unit f-\xc3\xb6-o.service launched on 2970b762.../172.17.8.101
$ fleetctl status f-\\xc3\\xb6-o.service 
● f-xc3xb6-o.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
...

It shows up in fleetctl list-unit-files as f-\xc3\xb6-o.service 4038b32 launched launched 2970b762.../172.17.8.101

I'm using systemd-escape[1] to generate escaped filenames:

$ systemd-escape -- f/ö/o.service
f-\xc3\xb6-o.service
$ systemd-escape -u -- f-\\xc3\\xb6-o.service
f/ö/o.service

See http://www.freedesktop.org/software/systemd/man/systemd-escape.html and search for "escape" in http://www.freedesktop.org/software/systemd/man/systemd.unit.html

For now, I'm having to resort to base32-encoding the filenames instead, which works for my purposes, but doesn't produce an easily readable fleetctl output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions