Commit graph

68 commits

Author SHA1 Message Date
Lennart Poettering 8fe914ec81 device: do not merge devices
Don't try to merge devices that have been created via dependencies when
they appear in the system and can be recognized as the same.  Instead,
simply continue to maintain them independently of each other, however
with the same state cycle. Why? Because otherwise we'd have a hard time
to seperate the dependencies after the devices are unplugged again and
we hence cannot be sure anymore that next time the device is plugged in
it will carry the same names.

Example: if one depndency refers to dev-sda.device and another one to
dev-by-id-xxxyyy.device we only learn at time of plug in of the device
that it is actually the same device that was ment. In the moment the
device is unplugged again we won't know anymore their relation to each
other and the next time the harddisk is plugged it might even appear as
dev-by-id-xxxyyy.device and dev-sdb.service. To ensure the dependencies
continue to have the meaning they were intended to have let's hence keep
the .device objects seperate all the time, even when they are plugged
in.

This patch also introduces a new Following= property which points from
the various .device units of a specific device to the main .device unit
for it. This can be used by the client side to figure out the relation
of the .device units to each other and even filter units from display.
2010-07-20 20:33:24 +02:00
Lennart Poettering 5632e3743d systemctl: introduce reset-maintenance command 2010-07-19 04:08:07 +02:00
Lennart Poettering d06428248a systemctl: extend list-units output a little 2010-07-17 00:59:03 +02:00
Lennart Poettering 45fb0699c4 systemctl: warn when operating on service files that changed on disk but haven't been reloaded 2010-07-17 00:57:51 +02:00
Lennart Poettering 0ff3dea700 systemctl: always show units with active jobs in list-units output 2010-07-16 21:31:34 +02:00
Lennart Poettering 4445a87557 systemctl: add to command for virtualizing the dependency tree with graphviz 2010-07-16 02:56:00 +02:00
Lennart Poettering 6f28c033ec systemctl: introduce try-restart and reload-or-restart commands 2010-07-13 20:20:36 +02:00
Lennart Poettering f057408c9c units: introduce emergency.target 2010-07-12 23:49:20 +02:00
Lennart Poettering 35d2e7ec19 cgroup: reimplement the last bit of libcgroup functionality natively 2010-07-12 18:16:44 +02:00
Lennart Poettering b708e7cea9 execute: optionally ignore return status of invoked commands 2010-07-12 03:07:01 +02:00
Lennart Poettering 983d9c9015 units: turn Wants=shutdown back into Requires=shutdown to avoid removal of jobs due to the impact minimizer 2010-07-11 04:22:00 +02:00
Lennart Poettering 90d473a1c0 systemctl: turn --replace into --fail 2010-07-11 03:59:59 +02:00
Lennart Poettering dce3acd2e2 Merge branch 'master' of ssh://git.freedesktop.org/git/systemd 2010-07-11 03:49:22 +02:00
Lennart Poettering b574246b4f dbus: use private connections wherever possible 2010-07-11 02:22:46 +02:00
Lennart Poettering 17bb73821c systemctl: move status further down 2010-07-11 01:20:57 +02:00
Lennart Poettering c6c18be35b cgroup: kill processes, not tasks and other cgroup changes 2010-07-11 00:50:49 +02:00
Lennart Poettering 582a507f1a systemctl: show exec status of all exited programs 2010-07-10 15:42:24 +02:00
Lennart Poettering b8131a87cc systemctl: show connection counters only for Accept=yes sockets 2010-07-10 00:55:44 +02:00
Lennart Poettering bc8c2f5c54 systemctl: short cut things if we aren't root and the user requested a reboot to suppress unnecessary wall message 2010-07-08 21:36:40 +02:00
Kay Sievers d47b555bb6 systemctl: don't actually reboot/poweroff/halt if only a wtmp update is requested 2010-07-08 21:36:40 +02:00
Lennart Poettering fa776d8e96 cgls: beef up control group dumping and introduce cgls tool 2010-07-08 21:01:42 +02:00
Lennart Poettering ab35fb1bc6 systemctl: filter and sort member pid of cgroup 2010-07-08 06:08:32 +02:00
Lennart Poettering 54165a3939 log: bump up a number of log messages so that they are shown even if debug logging is disabled, for diagnostic purposes 2010-07-07 17:57:54 +02:00
Lennart Poettering e0376b177c systemctl: minor beautifications 2010-07-07 04:13:19 +02:00
Lennart Poettering f4579ce704 dbus: don't try to run AddMatch when connected to a private bus 2010-07-07 04:13:19 +02:00
Lennart Poettering 7e61bf2019 systemctl: minor cosmetic fixes 2010-07-07 02:21:41 +02:00
Lennart Poettering ed2d7a4465 systemctl: when we cannot load a unit, retry with getting it 2010-07-06 20:33:54 +02:00
Lennart Poettering fc6071bfb3 systemctl: don't use UTF directly 2010-07-06 05:55:41 +02:00
Lennart Poettering 5f75059770 systemctl: fix parsing of cgroup contents 2010-07-06 05:38:12 +02:00
Lennart Poettering 9a1ac7b9ae install: implement --start option 2010-07-06 05:06:40 +02:00
Lennart Poettering c59760eeda systemctl: show cgroup contents in status 2010-07-05 03:06:02 +02:00
Lennart Poettering 61cbdc4b30 systemctl: implement 'status' command 2010-07-05 02:40:39 +02:00
Lennart Poettering a567261a29 dbus: send signals about jobs to the clients having created them unconditionally, and thus get rid of broadcast signals in most cases 2010-07-05 00:58:07 +02:00
Lennart Poettering 552e4331bf systemctl: use format_timespan() where applicable 2010-07-04 21:18:06 +02:00
Lennart Poettering 393a2f9be1 man: update systemctl man page 2010-07-04 20:46:12 +02:00
Lennart Poettering fe68089df6 dbus: complete exec command coverage 2010-07-04 20:38:14 +02:00
Lennart Poettering 14ad1d1437 dbus: include NextElapse field in timer properties 2010-07-04 16:48:24 +02:00
Lennart Poettering 82c121a475 dbus: complete exec coverage 2010-07-04 16:44:58 +02:00
Lennart Poettering 5bd0707340 dbus: complete automount and mount unit coverage 2010-07-04 04:55:33 +02:00
Lennart Poettering 707e5e5280 dbus: complete coverage of timer units 2010-07-04 04:37:03 +02:00
Lennart Poettering e87d1818cd systemctl: load unit when introspecting 2010-07-04 04:24:23 +02:00
Lennart Poettering ebf57b80c3 dbus: complete coverage for path units 2010-07-04 04:23:48 +02:00
Lennart Poettering 48220598fe systemctl: implement 'show' command 2010-07-04 03:43:57 +02:00
Lennart Poettering 6759e7a763 systemctl: implement delete command 2010-07-02 03:51:05 +02:00
Lennart Poettering 01b1b079c1 systemctl: fix detection of active units 2010-07-01 15:19:45 +02:00
Lennart Poettering 5e37489593 systemctl: return error codes for failed jobs 2010-07-01 03:44:09 +02:00
Lennart Poettering 0183528f6b systemctl: add 'check' call 2010-07-01 01:06:58 +02:00
Lennart Poettering 6e905d9360 systemctl: block by default 2010-07-01 00:32:29 +02:00
Lennart Poettering 2f02ce4005 utils: show help blurb when run without any arguments 2010-06-24 04:55:57 +02:00
Lennart Poettering 5ec7ed4ec6 systemctl: minor --help rewording 2010-06-24 03:08:37 +02:00