Commit graph

2618 commits

Author SHA1 Message Date
Lennart Poettering 7a41c61168 build-sys: add a number of missing header files to EXTRA_DIST 2011-07-12 01:11:40 +02:00
Kay Sievers d98b9b6345 build-sys: drop AM_GNU_GETTEXT as it fights with IT_PROG_INTLTOOL
<mbiebl> kay, mezcalero: https://bugzilla.gnome.org/show_bug.cgi?id=627789
  <mezcalero> so we can drop that entirely?
  <mezcalero> kay: if you drop those two lines, does it improve things for you?
  <mbiebl> kay: but ./configure should work now
  <mbiebl> resp. autogen.sh
  <kay> mezcalero, mbiebl: autogen.sh seems a lot better without the two lines
  <kay> mezcalero: works without the 'touch' thing
  <mezcalero> kay: ok, commit please
2011-07-12 00:45:28 +02:00
Frederic Crozat a268a6a38f units: add units for boot.local/halt.local on SUSE distributions. 2011-07-12 00:15:35 +02:00
Lennart Poettering 89d471d55e shutdown: coding style fixes 2011-07-11 22:56:45 +02:00
Lennart Poettering 7e2bb92dca Merge remote-tracking branch 'harald/master' 2011-07-11 22:39:57 +02:00
Zbigniew Jędrzejewski-Szmek 2fb1aedaf2 logind: Fix compilation without ACL
Compilation fails if sys/acl.h is not available. The configure script
already tests for sys/acl.h presence, but the result was so far unused.
To compile without acl, stub implementations of the acl functions are
used.
2011-07-11 22:29:45 +02:00
Zbigniew Jędrzejewski-Szmek 4e7f8bc81c man: un-reverse IgnoreOnSnapshot description
I think that snapshots & devices are actually _not_ captured in
snapshots.
2011-07-11 22:09:41 +02:00
Lennart Poettering 1258097cd3 update TODO 2011-07-11 21:10:48 +02:00
Bastien Nocera 1c7dde3e47 build-sys: Add i18n support through intltool
And put the PolicyKit policy files up for translation.
2011-07-11 21:10:33 +02:00
Kay Sievers 2376ce132b clarify separate-/usr message
Everything should be fine if /usr is mounted from initramfs.
2011-07-11 02:12:42 +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
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
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
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
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
Michael Olbrich dee87d612d umount: ignore missing /proc/swaps
/proc/swaps does not exist when swap is disabled in the kernel.
Just report an empty list of mountpoints to unmount in this case.
2011-07-02 00:26:23 +02:00
Henry Gebhardt e05b415e95 configure: Add --enable-plymouth option
As in the bug[1] it would be nice to configure plymouth support
independently of the distro. This patch adds a "--enable-plymouth" and
"--disable-plymouth" option to the configure script to overwrite the
distro specific default.

[1] https://bugs.freedesktop.org/show_bug.cgi?id=38460
2011-07-02 00:18:26 +02:00