Commit Graph

2659 Commits

Author SHA1 Message Date
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
Lennart Poettering
b1bc08e599 manager: don't even think of enumerating sysv services in user instances 2011-07-01 23:53:44 +02:00
Lennart Poettering
5c94603d4c nspawn: better use setresuid() instead of setreuid() 2011-07-01 23:53:14 +02:00
Michal Vyskocil
687d0825a4 nspawn: spawn shell under specified --user
Add -u/--user option, which changes the effective and real user and
group id to the new value. The user must exists in the chroot, otherwise
it will fail. Both username and user id are accepted. The user home is
created as well.

It also setup HOME, USER, LOGNAME and SHELL variables .
2011-07-01 23:51:14 +02:00
Michal Vyskocil
1cccf43569 nspawn: Move the get_user_creds from execute.c to utils.c for later usage in nspawn.c. 2011-07-01 23:49:56 +02:00
Lennart Poettering
bde7f90721 logind: temporarily hack right user bus address into unit file 2011-07-01 22:36:15 +02:00
Lennart Poettering
eeecf6e607 log: log to syslog unless connected to a tty in user mode 2011-07-01 22:35:34 +02:00
Lennart Poettering
0254daedb1 logind: create private subdirectory for X11 socket 2011-07-01 22:34:58 +02:00
Lennart Poettering
be81bfc4a7 dbus: listen on private sockets in user mode too 2011-07-01 22:34:37 +02:00
Lennart Poettering
8fef765900 unit: support wildcards in Environment=, EnvironmentFile= 2011-07-01 01:13:47 +02:00