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.
This commit is contained in:
Lennart Poettering
2012-06-22 13:08:48 +02:00
parent 03658d4fd6
commit b0193f1c1f
9 changed files with 317 additions and 112 deletions
+1
View File
@@ -1,3 +1,4 @@
/test-unit-name
/systemd-system-update-generator
/systemd-fstab-generator
/systemd-delta