Age | Commit message (Collapse) | Author |
|
|
|
For "systemctl snapshot" it makes no sense to complete an incomplete
name with ".service" as we previously did, use ".snapshot" instead.
Also, don't bother with mount units or suchlike, we know that this must
be a snapshot and hence is the only sane way for completion.
|
|
The list of types and load states if lengthy, so a little reminder
can be sometimes useful.
|
|
systemctl status a and systemctl status a.service lead to same output but
systemctl status a.b and systemctl status a.b.service do not.
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=855863
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=39386
|
|
to make it look like the newly added unit_name_is_instance()
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=752774
|
|
This is to match strappend() and the other string related functions.
|
|
This makes it possible to use them from systemctl without linking
against the core.
|
|
to unit-name.h
|
|
This makes it possible to use them from systemctl without linking
against the core. A string->enum lookup table is added.
|
|
|
|
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.
|
|
Use the same function in core and in systemctl.
get_unit_path() in systemctl becomes unnecessary.
|
|
Supposed to prevent creating unit files like:
├── dev-sda1.device.wants
│ └── .dot.mount -> /run/systemd/generator/.dot.mount
├── .dot.mount
from:
# cat /etc/fstab
/dev/sda1 /.dot vfat ro 1 3
which we later skip reading because of the leading '.'.
|
|
|
|
|