summaryrefslogtreecommitdiff
path: root/src/shared/unit-name.c
AgeCommit message (Collapse)Author
2012-11-15Isolation of udev code from remaining systemdAnthony G. Basile
This commit is a first attempt to isolate the udev code from the remaining code base. It intentionally does not modify any files but purely delete files which, on a first examination, appear to not be needed. This is a sweeping commit which may easily have missed needed code. Files can be retrieved by doing a checkout from the previous commit: git checkout 2944f347d0 -- <filename>
2012-10-16systemctl: append .service when unit does not have valid suffixLukas Nykryn
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.
2012-09-14util: various additional modernizationsLennart Poettering
2012-09-12unit-name: rework unit_name_replace_instance function()Lennart Poettering
https://bugzilla.redhat.com/show_bug.cgi?id=855863
2012-07-28systemctl: append .service to unit names lacking suffixLennart Poettering
https://bugs.freedesktop.org/show_bug.cgi?id=39386
2012-07-26unit-name: style fix in unit_name_is_template()Michal Schmidt
to make it look like the newly added unit_name_is_instance()
2012-07-26systemd: enable/disable instances of templateMichal Sekletar
https://bugzilla.redhat.com/show_bug.cgi?id=752774
2012-07-13util: rename join() to strjoin()Lennart Poettering
This is to match strappend() and the other string related functions.
2012-07-10unit: Move UnitLoadState definitions from core/unit.c to shared/unit-name.cZbigniew Jędrzejewski-Szmek
This makes it possible to use them from systemctl without linking against the core.
2012-07-10unit-name: remove unit_name_is_valid_no_type() and move unit_name_is_valid() ↵Lennart Poettering
to unit-name.h
2012-07-10unit: Move UnitType definitions from core/unit.c to shared/unit-name.cZbigniew Jędrzejewski-Szmek
This makes it possible to use them from systemctl without linking against the core. A string->enum lookup table is added.
2012-06-25cryptsetup: fix escaping when generating cryptsetup unitsLennart Poettering
2012-06-22systemctl: automatically turn paths and unescaped unit names into proper ↵Lennart Poettering
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-13unit-name: introduce unit_dbus_path_from_name()Michal Schmidt
Use the same function in core and in systemctl. get_unit_path() in systemctl becomes unnecessary.
2012-06-04unit-name: never create a unit name with a leading '.'Kay Sievers
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-05-08util: split-out path-util.[ch]Kay Sievers
2012-04-12move more common files to shared/ and add them to shared.laKay Sievers