Commit Graph
57095 Commits
Author SHA1 Message Date
Kay Sievers 0438d54ed9 path_id: recognize ACPI parent devices
We need to tag the power input button for multi-seat.
2011-07-10 05:32:15 +02:00
Lennart Poettering 24310c11ba loginctl: add missing header file 2011-07-09 00:04:27 +02:00
Lennart Poettering aca4c78676 systemctl: fix --help syntax for variables 2011-07-08 21:45:59 +02:00
Lennart Poettering 1189684177 logind: don't confuse 'shared' with a session of its own 2011-07-08 21:45:44 +02:00
Lennart Poettering e3e9cc803e logind: fix introspection typo 2011-07-08 21:45:23 +02:00
Lennart Poettering 7b3afbac4d acl: two tag matching is not going to be available in libudev 2011-07-08 21:44:22 +02:00
Lennart Poettering a4c279f874 loginctl: add various introspection functions 2011-07-08 21:39:10 +02:00
Lennart Poettering 33fd64726c seat: only mark main input device for seat assignments 2011-07-08 21:37:17 +02:00
Kay Sievers a07e011434 libudev: enumerate - clarify documentation 2011-07-08 02:09:40 +02:00
Kay Sievers 6ed03d1e2c libudev: enumerate - include parent device itself with match_parent() 2011-07-08 00:57:58 +02:00
Kay Sievers b05211fa3e libudev: enumerate - add udev_enumerate_add_match_parent() 2011-07-08 00:42:35 +02:00
Kay Sievers b59c22a758 libudev: device - add udev_device_has_tag() to libudev.h and gtk-doc 2011-07-07 21:31:50 +02:00
Kay Sievers d21781c457 update TODO 2011-07-07 20:06:45 +02:00
Kay Sievers 705a165d4d enforce valid TAG+= names 2011-07-07 20:02:41 +02:00
Kay Sievers 91f329fcd0 path_id: add ID_PATH_TAG= to be used in udev tags 2011-07-07 19:59:03 +02:00
Lennart Poettering 69fc152fc1 systemctl: hide all information on --kill-mode= since it is mostly useless 2011-07-07 04:19:03 +02:00
Lennart Poettering ef3a24de02 systemctl: use cached tty value where possible 2011-07-07 03:30:47 +02:00
Lennart Poettering 3b0727f5ec systemctl: cache tty value before we open the pager 2011-07-07 03:30:31 +02:00
Lennart Poettering abca482291 loginctl: add basic implementation of loginctl for introspecting controlling sessions/users/seats 2011-07-07 03:29:56 +02:00
Lennart Poettering 1968a36040 cgls: add pager support to systemd-cgls 2011-07-07 02:34:35 +02:00
Lennart Poettering 8092a428d4 path,unit: support globbing in conditions and path units 2011-07-07 02:07:39 +02:00
Lennart Poettering 31a5f880cf update TODO 2011-07-07 01:18:10 +02:00
Kay Sievers 8992abf552 path_id: add missing '-' to tape suffix 2011-07-06 20:36:47 +02:00
Kay Sievers 5433b7320e libudev: device - export udev_device_has_tag() 2011-07-06 17:01:11 +02:00
Lennart Poettering a755605296 manager: merge serialization and desrialization counter into one, and increase it when reexecuting
Instead of having individual counters n_serializing and n_deserializing
have a single one n_reloading, which should be sufficient.

Set n_reloading when we are about to go down for reexecution to avoid
cgroup trimming when we free the units for reexecution.
2011-07-06 00:47:42 +02:00
Lennart Poettering 38a285d776 cgroup: don't trim a cgroup we create, we might just take it over from somebody else 2011-07-06 00:14:26 +02:00
Lennart Poettering d5762cf540 udev: tag virtio serial ports with systemd by default 2011-07-05 20:32:08 +02:00
Lennart Poettering 4e002583fa update TODO 2011-07-05 17:27:44 +02:00
Lennart Poettering 347b9c4b1f udev: improve udev rule a bit 2011-07-05 14:27:26 +02:00
Michal Schmidt f878830392 service: 'pidfile:' in SysV chkconfig header implies a real daemon
The presence of the chkconfig "pidfile:" header in the initscript is an
excellent indication that it's not a oneshot script (like iptables),
but a real daemon (like httpd).
2011-07-05 10:17:42 +02:00
Kay Sievers 665a754d03 rules: fix wrong wildcard match, we always need a ':*' at the end 2011-07-05 05:37:13 +02:00
Lennart Poettering 5db35d0672 udev: pull in printer.target from all kinds of printers 2011-07-05 03:29:24 +02:00
Lennart Poettering 7862f62de3 util: explicitly turn of O_CLOEXEC for stdin/stdout/stderr 2011-07-05 03:29:24 +02:00
Lennart Poettering ccaa61498c add a few O_CLOEXEC where missing 2011-07-05 03:29:24 +02:00
Lennart Poettering b5ef5549e9 logind: write rules files atomically 2011-07-05 03:29:24 +02:00
Lennart Poettering 0a31730e3b update todo 2011-07-05 03:29:24 +02:00
Kay Sievers f2a2983604 rules: remove redundant MODE="0664" from lp rules 2011-07-05 03:11:04 +02:00
Lennart Poettering 5ba7b87195 password-agent: actually really don't access unallocated memory
Fix for 9726f9ff11
2011-07-04 19:06:43 +02:00
Lennart Poettering 9726f9ff11 password-agent: make sure not to access unallocated memory
Tracked down by Frederic Crozat
2011-07-04 19:00:48 +02:00
Harald Hoyer 7cb1094ace shutdown: pivot_root to a tmpfs directory to properly umount root
check for /run/initramfs/shutdown
mount bind all needed dirs to /run/initramfs
pivot_root to /run/initramfs
execute /run/initramfs/shutdown
2011-07-04 12:47:50 +02:00
Harald Hoyer 31657718f5 umount: log failed umounts only once at the end 2011-07-04 12:47:50 +02:00
Harald Hoyer 6f7f51f793 umount: umount, until all umounts failed 2011-07-04 12:47:50 +02:00
Harald Hoyer 0415a10436 umount: log_info about what we unmounted 2011-07-04 12:47:50 +02:00
Michal Schmidt b8590c197d systemadm: report GLib.Error only to stderr
When a GLib.Error happens, it is likely that showing a message box would fail
too.

https://bugzilla.redhat.com/show_bug.cgi?id=716663
2011-07-03 01:51:09 +02:00
Michal Schmidt 30923233b3 shutdown: print the standard wall message even when the user provided one
Print the user-provided wall message in addition to the standard one, not
instead of it.

Related to: https://bugzilla.redhat.com/show_bug.cgi?id=624149
2011-07-03 00:15:43 +02:00
Michal Schmidt 52c002150a shutdown: respect the dry run option '-k'
Don't do the actual power-off/reboot when '-k' is passed to shutdown.

Related to: https://bugzilla.redhat.com/show_bug.cgi?id=624149
2011-07-03 00:12:16 +02:00
Michal Schmidt 1a63987788 shutdown: accept minutes argument without '+'
Both SysVinit's and upstart's shutdown commands accept the number of
minutes with or without the plus sign.
'shutdown -h 1' works in RHEL 5, Fedora 14, Debian 6.
Let's be compatible.

https://bugzilla.redhat.com/show_bug.cgi?id=708886
2011-07-03 00:11:22 +02:00
Michal Schmidt 1b562e4604 manager: consider the active job when merging
In some cases systemd forgets to start enabled services, e.g. in this scenario:
1. The job "sendmail.service/start" is installed.
2. Before systemd proceeds with this job, a process requests a reload of
   sendmail. The job "sendmail.service/reload" is enqueued.
3. The original job is silently discarded. The service is not started.
   The reload job proceeds by doing nothing.

The fix is to allow merging transaction jobs with the active job.
With the fix the resulting merged job "sendmail.service/reload-or-start" is
installed and the service works as expected.

https://bugzilla.redhat.com/show_bug.cgi?id=633774
2011-07-02 17:32:05 +02:00
Lennart Poettering 21bdae12e1 tmpfiles: don't exit with an error code if we cannot access all files
This is just to avoid confusion if people use stuff like FUSE file
systems or SELinux which might disallow access to files even if tmpfiles
is running as root.

We still log away if we cannot access a file, but we do not return a
failure exit code in the end.
2011-07-02 01:45:29 +02:00
Lennart Poettering 26b8e979c8 units: enable dev-hugepages.automount and dev-mqueue.automount only when enabled in kernel 2011-07-02 01:00:00 +02:00