Lennart Poettering
8556879e0d
unit-name: rework unit_name_replace_instance function()
...
https://bugzilla.redhat.com/show_bug.cgi?id=855863
2012-09-12 04:46:38 +02:00
Lennart Poettering
56d4fbf92e
systemctl: append .service to unit names lacking suffix
...
https://bugs.freedesktop.org/show_bug.cgi?id=39386
2012-07-28 13:20:35 +02:00
Michal Schmidt
a7b9ecf9b2
unit-name: style fix in unit_name_is_template()
...
to make it look like the newly added unit_name_is_instance()
2012-07-26 10:14:33 +02:00
Michal Sekletar
29283ea4cf
systemd: enable/disable instances of template
...
https://bugzilla.redhat.com/show_bug.cgi?id=752774
2012-07-26 10:02:10 +02:00
Lennart Poettering
b7def68494
util: rename join() to strjoin()
...
This is to match strappend() and the other string related functions.
2012-07-13 13:41:01 +02:00
Zbigniew Jędrzejewski-Szmek
f69614f811
unit: Move UnitLoadState definitions from core/unit.c to shared/unit-name.c
...
This makes it possible to use them from systemctl without linking
against the core.
2012-07-10 17:18:49 +02:00
Lennart Poettering
5f73969991
unit-name: remove unit_name_is_valid_no_type() and move unit_name_is_valid() to unit-name.h
2012-07-10 17:07:32 +02:00
Zbigniew Jędrzejewski-Szmek
0a9f8ed00c
unit: Move UnitType definitions from core/unit.c to shared/unit-name.c
...
This makes it possible to use them from systemctl without linking
against the core. A string->enum lookup table is added.
2012-07-10 16:48:08 +02:00
Lennart Poettering
35eb6b124e
cryptsetup: fix escaping when generating cryptsetup units
2012-06-25 20:16:15 +02:00
Lennart Poettering
b0193f1c1f
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.
2012-06-22 13:08:48 +02:00
Michal Schmidt
48899192a7
unit-name: introduce unit_dbus_path_from_name()
...
Use the same function in core and in systemctl.
get_unit_path() in systemctl becomes unnecessary.
2012-06-13 18:42:02 +02:00
Kay Sievers
4b7126538c
unit-name: never create a unit name with a leading '.'
...
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 '.'.
2012-06-04 14:57:24 +02:00
Kay Sievers
9eb977db5b
util: split-out path-util.[ch]
2012-05-08 02:33:10 +02:00
Kay Sievers
f33d3ec1d7
move more common files to shared/ and add them to shared.la
2012-04-12 02:39:37 +02:00