chiark / gitweb /
systemctl: automatically turn paths and unescaped unit names into proper unit names
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Jun 2012 11:08:48 +0000 (13:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Jun 2012 11:08:48 +0000 (13:08 +0200)
commitb0193f1c1f1540bfccbdca02df82669b9308e4e2
treec23e22e1857d73f7faff35ab1569a2070bac1797
parent03658d4fd66d5d0ccce643cef92185ec38b0e575
systemctl: automatically turn paths and unescaped unit names into proper unit names

This makes sure that

  systemctl status /home

is implicitly translated to:

  systemctl status /home.mount

Similar, /dev/foobar becomes dev-foobar.device.

Also, all characters that cannot be part of a unit name are implicitly
escaped.
.gitignore
Makefile.am
TODO
src/core/device.c
src/shared/unit-name.c
src/shared/unit-name.h
src/systemctl/systemctl.c
src/test/test-hostname.c
src/test/test-unit-name.c [new file with mode: 0644]