chiark / gitweb /
elogind.git
11 years agoutil.c: add in_initrd()
Harald Hoyer [Wed, 16 May 2012 12:22:40 +0000 (14:22 +0200)]
util.c: add in_initrd()

in_initrd() checks, if the stat() for the device for "/" is 1, which it
is for the initramfs.

11 years agomain: corrected do_switch_root()
Harald Hoyer [Wed, 16 May 2012 12:22:39 +0000 (14:22 +0200)]
main: corrected do_switch_root()

do_switch_root now mount moves "/dev", "/proc", "/sys", "/run" and
removes the old root recursively.

11 years agodelta: fix spelling of overridden
Nis Martensen [Wed, 16 May 2012 20:49:30 +0000 (22:49 +0200)]
delta: fix spelling of overridden

11 years agoutil: fix typo in newdup
Frederic Crozat [Mon, 21 May 2012 14:53:18 +0000 (16:53 +0200)]
util: fix typo in newdup

11 years agoupdate TODO
Lennart Poettering [Mon, 21 May 2012 16:18:15 +0000 (18:18 +0200)]
update TODO

11 years agosd-pam: Drop uid so parent signal arrives at child.
Auke Kok [Thu, 17 May 2012 19:17:42 +0000 (12:17 -0700)]
sd-pam: Drop uid so parent signal arrives at child.

The PAM helper thread needs to capture the death signal from the
parent, but is prohibited from doing so since when the child dies
as normal user, the kernel won't allow it to send a TERM to the
PAM helper thread which is running as root.

This causes the PAM threads to never exit, accumulating after
user sessions exit.

There is however really no need to keep the PAM threads running as
root, so, we can just setresuid() to the same user as defined in the
unit file for the parent thread (User=). This makes the TERM signal
arrive as normal. In case setresuid() fails, we ignore the error, so
we at least fall back to the current behaviour.

11 years agoupdate TODO
Lennart Poettering [Mon, 21 May 2012 15:55:54 +0000 (17:55 +0200)]
update TODO

11 years agojournalctl: fix built-in usage output
Daniel Mack [Fri, 18 May 2012 19:58:35 +0000 (21:58 +0200)]
journalctl: fix built-in usage output

This brings journalctl's built-in usage output in sync with the man page.
There are no commands to pass, and the help screen should not confuse
users.

11 years agocryptsetup: support discards (TRIM)
Matthew Monaco [Sat, 19 May 2012 15:05:50 +0000 (09:05 -0600)]
cryptsetup: support discards (TRIM)

11 years agomain: try a bit harder to find an init process to execute after reexec/switch-root
Lennart Poettering [Mon, 21 May 2012 15:26:19 +0000 (17:26 +0200)]
main: try a bit harder to find an init process to execute after reexec/switch-root

11 years agoservice: make the fsck pass no configurable
Lennart Poettering [Mon, 21 May 2012 15:24:26 +0000 (17:24 +0200)]
service: make the fsck pass no configurable

11 years agocryptsetup: a few simplifications
Lennart Poettering [Mon, 21 May 2012 15:22:36 +0000 (17:22 +0200)]
cryptsetup: a few simplifications

11 years agohostname-setup: also consider (ńone) an unset hostname
Lennart Poettering [Mon, 21 May 2012 15:19:58 +0000 (17:19 +0200)]
hostname-setup: also consider (ńone) an unset hostname

11 years agoupdate TODO
Lennart Poettering [Mon, 21 May 2012 13:34:33 +0000 (15:34 +0200)]
update TODO

11 years agoupdate TODO
Lennart Poettering [Mon, 21 May 2012 13:28:07 +0000 (15:28 +0200)]
update TODO

11 years agounit: introduce RequiredBy= setting in [Install], to complement WantedBy=
Lennart Poettering [Mon, 21 May 2012 13:27:26 +0000 (15:27 +0200)]
unit: introduce RequiredBy= setting in [Install], to complement WantedBy=

11 years agologin: minor typo fix
Lennart Poettering [Mon, 21 May 2012 13:22:28 +0000 (15:22 +0200)]
login: minor typo fix

11 years agounits: introduce new Documentation= field and make use of it everywhere
Lennart Poettering [Mon, 21 May 2012 13:12:18 +0000 (15:12 +0200)]
units: introduce new Documentation= field and make use of it everywhere

This should help making the boot process a bit easier to explore and
understand for the administrator. The simple idea is that "systemctl
status" now shows a link to documentation alongside the other status and
decriptionary information of a service.

This patch adds the necessary fields to all our shipped units if we have
proper documentation for them.

11 years agosystemctl: drop useless DBus calls from 'systemctl show foo.service'
Michal Schmidt [Mon, 21 May 2012 10:54:43 +0000 (12:54 +0200)]
systemctl: drop useless DBus calls from 'systemctl show foo.service'

systemctl called LoadUnit, GetUnit, GetAll in this order to get the properties.

It is useless to load units explicitly, because it won't ensure anything. The
unit may be freed immediately by the garbage collector.

It is unnecessary to call GetUnit, because systemctl can easily translate the
unit name to DBus path by itself.

GetAll will load the unit if necessary.

11 years agodbus-unit: always load the unit before handling a message for it
Michal Schmidt [Mon, 21 May 2012 10:54:34 +0000 (12:54 +0200)]
dbus-unit: always load the unit before handling a message for it

We need to be able to show the properties even of inactive units.
systemctl loads the unit before getting its properties, but this is racy
as the garbage collector may kick in right after the loading.

Fix it by always loading the unit before handling a message for it.

https://bugzilla.redhat.com/show_bug.cgi?id=814966#c6

11 years agodelta: drop PHP'ism
Lennart Poettering [Mon, 21 May 2012 00:02:40 +0000 (02:02 +0200)]
delta: drop PHP'ism

11 years agodelta: don't highlight unchanged files
Lennart Poettering [Mon, 21 May 2012 00:02:31 +0000 (02:02 +0200)]
delta: don't highlight unchanged files

11 years agoupdate TODO
Lennart Poettering [Mon, 21 May 2012 00:02:19 +0000 (02:02 +0200)]
update TODO

11 years agodelta: introduce arg_flags field, to follow our usual scheme
Lennart Poettering [Mon, 21 May 2012 00:01:52 +0000 (02:01 +0200)]
delta: introduce arg_flags field, to follow our usual scheme

11 years agodelta: use same nomenclature for equivalent and redirected everywhere
Lennart Poettering [Wed, 16 May 2012 16:57:57 +0000 (18:57 +0200)]
delta: use same nomenclature for equivalent and redirected everywhere

11 years agodelta: enums are much cooler than defines
Lennart Poettering [Wed, 16 May 2012 16:53:46 +0000 (18:53 +0200)]
delta: enums are much cooler than defines

11 years agodelta: Support filtering what type of deltas to show
Gergely Nagy [Wed, 16 May 2012 16:11:27 +0000 (18:11 +0200)]
delta: Support filtering what type of deltas to show

Not everyone is interested in every kind of deltas (and some might
even be interested knowing which files do not have overrides), so this
here is an implementation of a --type=LIST... option for
systemd-delta, that makes it possible to filter what subset of deltas
we want.

The available modifiers are masked, equivalent, redirected, overriden,
and unchanged - they should be self explanatory, and the man page
explains them in a little more detail anyway.

As a side effect, in case of overriden files, the diff output was made
optional.

By default, everything is shown (with a diff, if appropriate) except
for completely unchanged files.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
11 years agodelta: add preset dirs
Lennart Poettering [Wed, 16 May 2012 01:39:41 +0000 (03:39 +0200)]
delta: add preset dirs

11 years agodelta: add missing files
Lennart Poettering [Wed, 16 May 2012 01:36:42 +0000 (03:36 +0200)]
delta: add missing files

11 years agoswitch-root: check for absolute paths
Lennart Poettering [Wed, 16 May 2012 01:23:54 +0000 (03:23 +0200)]
switch-root: check for absolute paths

11 years agodelta: add systemd-delta tool to find overriden configuration and unit files
Lennart Poettering [Wed, 16 May 2012 01:23:28 +0000 (03:23 +0200)]
delta: add systemd-delta tool to find overriden configuration and unit files

11 years agoudev: update docs, NEWS
Kay Sievers [Tue, 15 May 2012 21:44:28 +0000 (23:44 +0200)]
udev: update docs, NEWS

11 years agoudev: libudev - bump soname, remove deprecated functions, introduce symbol versions
Kay Sievers [Tue, 15 May 2012 20:57:58 +0000 (22:57 +0200)]
udev: libudev - bump soname, remove deprecated functions, introduce symbol versions

11 years agobuild-sys: support build-from-git without gobject-introspection
Kay Sievers [Tue, 15 May 2012 13:05:36 +0000 (15:05 +0200)]
build-sys: support build-from-git without gobject-introspection

11 years agobuild-sys: fix distcheck
Kay Sievers [Tue, 15 May 2012 12:52:53 +0000 (14:52 +0200)]
build-sys: fix distcheck

11 years agotmpfiles: if we are supposed to write a string to a file, it's OK if we can't write...
Lennart Poettering [Tue, 15 May 2012 12:34:33 +0000 (14:34 +0200)]
tmpfiles: if we are supposed to write a string to a file, it's OK if we can't write the trailing newline

11 years agobuild-sys: fix build
Lennart Poettering [Tue, 15 May 2012 12:34:06 +0000 (14:34 +0200)]
build-sys: fix build

11 years agobuild-sys: fix build for folks without gtk-doc installed
Lennart Poettering [Tue, 15 May 2012 11:55:48 +0000 (13:55 +0200)]
build-sys: fix build for folks without gtk-doc installed

11 years agogit: update gitignore
Lennart Poettering [Tue, 15 May 2012 11:54:05 +0000 (13:54 +0200)]
git: update gitignore

11 years agobuild-sys: move gtk-doc stuff into its own subdir and reindent autogen.sh
Lennart Poettering [Tue, 15 May 2012 11:53:05 +0000 (13:53 +0200)]
build-sys: move gtk-doc stuff into its own subdir and reindent autogen.sh

We moved most other build noise files into their own subdirs, so let's
do this for gtk-doc too

11 years agoman: overwrite vs. override
Michal Schmidt [Tue, 15 May 2012 06:16:30 +0000 (08:16 +0200)]
man: overwrite vs. override

'overwrite' conveys the idea of the old text being destroyed.
'override' does not. It is more similar to 'overrule'.

11 years agoinstall: fix inverted meaning of '--force' in systemctl enable
Michal Schmidt [Tue, 15 May 2012 06:12:49 +0000 (08:12 +0200)]
install: fix inverted meaning of '--force' in systemctl enable

11 years agomissing: Fix broken syscall(__NR_fanotify_mark... on ppc32
Andreas Schwab [Tue, 8 May 2012 17:18:26 +0000 (19:18 +0200)]
missing: Fix broken syscall(__NR_fanotify_mark... on ppc32

The same situation as on o32 mips.

11 years agosd-login: update header docs a bit
Lennart Poettering [Mon, 14 May 2012 20:41:17 +0000 (22:41 +0200)]
sd-login: update header docs a bit

11 years agonamespace: make PrivateTmp= apply to both /tmp and /var/tmp
Lennart Poettering [Fri, 11 May 2012 15:56:09 +0000 (17:56 +0200)]
namespace: make PrivateTmp= apply to both /tmp and /var/tmp

11 years agoupdate TODO
Lennart Poettering [Fri, 11 May 2012 15:46:58 +0000 (17:46 +0200)]
update TODO

11 years agosystemctl: add switch-root verb
Lennart Poettering [Fri, 11 May 2012 15:35:46 +0000 (17:35 +0200)]
systemctl: add switch-root verb

11 years agocore: add extra safety check before switching root
Lennart Poettering [Fri, 11 May 2012 15:17:57 +0000 (17:17 +0200)]
core: add extra safety check before switching root

11 years agojob: info message if JOB_VERIFY_ACTIVE detects an inactive unit
Michal Schmidt [Sun, 13 May 2012 21:29:19 +0000 (23:29 +0200)]
job: info message if JOB_VERIFY_ACTIVE detects an inactive unit

11 years agojob: report the status of first half of JOB_RESTART the same as JOB_STOP
Michal Schmidt [Sun, 13 May 2012 21:28:46 +0000 (23:28 +0200)]
job: report the status of first half of JOB_RESTART the same as JOB_STOP

11 years agounit: unit type dependent status messages
Michal Schmidt [Sun, 13 May 2012 16:18:54 +0000 (18:18 +0200)]
unit: unit type dependent status messages

Instead of generic "Starting..." and "Started" messages for all unit use
type-dependent messages. For example, mounts will announce "Mounting..."
and "Mounted".

Add status messages to units of types that used to be entirely silent
(automounts, sockets, targets, devices). For unit types whose jobs are
instantaneous, report only the job completion, not the starting event.
Socket units with non-instantaneous jobs are rare (Exec*= is not used
often in socket units), so I chose not to print the starting messages
for them either.

This will hopefully give people better understanding of the boot.

11 years agounit: print the color status marks on the left
Michal Schmidt [Mon, 14 May 2012 10:50:33 +0000 (12:50 +0200)]
unit: print the color status marks on the left

The alignment of the "[  OK  ]" and "[FAILED]" status marks to the right
side of the terminal makes it difficult to link them with the messages
on the left if your console is wide.

I considered the options:
 1. Align them to the 80th column regardless of the console width.
    Disadvantage - either:
    - truncating messages needlessly, not using available space; or
    - If the message is long, write the mark over it. => ugly
 2. Write them to the 80th column for short messages,
    and further to the right for longer ones.
    Disadvantage:
    - jagged look
 3. Write the marks on the left, before the message.
    Disadvantage:
    - Breaks tradition from RHL.
    Advantages:
    + slightly simpler code
    + Will annoy holy-traditionalists.

I chose option 3.
BTW, Debian now uses similar marks on the left with its makefile-style
boot.

Special values of the "status" argument to status_vprintf are:
  NULL - no status mark, no message indentation
  ""   - no status mark, message indented as if the mark was there

11 years agojob: change red [ABORT] status to yellow [DEPEND]
Michal Schmidt [Mon, 14 May 2012 10:23:23 +0000 (12:23 +0200)]
job: change red [ABORT] status to yellow [DEPEND]

The red "[ABORT]" for a dependency failure is too scary.
It suggests a crash. And it suggests a problem with the unit itself.
Change it to a yellow "[DEPEND]" message. The color communicates the
level of seriousness better.

11 years agojob: only jobs on the runqueue can be run
Michal Schmidt [Sat, 12 May 2012 19:06:27 +0000 (21:06 +0200)]
job: only jobs on the runqueue can be run

11 years agounits: do not quit plymouth too early
Michal Schmidt [Sat, 12 May 2012 20:01:27 +0000 (22:01 +0200)]
units: do not quit plymouth too early

11 years agokeymap: Add Mio N890
Martin Pitt [Mon, 14 May 2012 11:06:48 +0000 (13:06 +0200)]
keymap: Add Mio N890

https://launchpad.net/bugs/998621

11 years agoupdate mailmap for Martin Pitt
Martin Pitt [Mon, 14 May 2012 11:06:20 +0000 (13:06 +0200)]
update mailmap for Martin Pitt

11 years agoudev: path_id - cciss - set "we have a bus" flag
Kay Sievers [Thu, 10 May 2012 19:35:54 +0000 (21:35 +0200)]
udev: path_id - cciss - set "we have a bus" flag

11 years agoudev: path_id - add cciss support
Hannes Reinecke [Thu, 10 May 2012 11:18:07 +0000 (13:18 +0200)]
udev: path_id - add cciss support

11 years agodbus-manager: fix tainted string
Michal Schmidt [Wed, 9 May 2012 19:42:56 +0000 (21:42 +0200)]
dbus-manager: fix tainted string

The pointer to the end of the string was not advanced after adding
the "cgroups-missing" taint. If "local-hwclock" was detected too,
it would overwrite the previous string.

With 'e' always pointing to the end of the string, removing the last
delimiter is easier.

11 years agomain: fix uninitialized variable
Michal Schmidt [Wed, 9 May 2012 09:20:06 +0000 (11:20 +0200)]
main: fix uninitialized variable

11 years agomain: fix assertion failure due to use of ELEMENTSOF on a non-array
Michal Schmidt [Wed, 9 May 2012 09:13:26 +0000 (11:13 +0200)]
main: fix assertion failure due to use of ELEMENTSOF on a non-array

11 years agobash-completion: use printf instead of echo
Michal Schmidt [Wed, 9 May 2012 07:36:20 +0000 (09:36 +0200)]
bash-completion: use printf instead of echo

If the expanded argument begins with '-', echo would try to interpret
it as options.
printf does not have this problem. Use it everywhere.

11 years agobash-completion: avoid losing backslashes in unit names
Michal Schmidt [Wed, 9 May 2012 07:18:44 +0000 (09:18 +0200)]
bash-completion: avoid losing backslashes in unit names

Use 'read -r' everywhere to consider backslashes as parts of the input line.
Single-quote the arguments to 'compgen -W' to avoid immediate expansion.
compgen itself will expand the argument.

Fixes a possible reason for "Failed to issue method call: Unknown unit"
after requesting completion.

https://bugzilla.redhat.com/show_bug.cgi?id=814966

11 years agoupdate TODO
Lennart Poettering [Tue, 8 May 2012 23:26:30 +0000 (01:26 +0200)]
update TODO

11 years agoutil: a few updates for rm_rf()
Lennart Poettering [Tue, 8 May 2012 23:25:52 +0000 (01:25 +0200)]
util: a few updates for rm_rf()

11 years agomanager: introduce SwitchRoot bus call for initrd/main transition
Lennart Poettering [Tue, 8 May 2012 23:24:50 +0000 (01:24 +0200)]
manager: introduce SwitchRoot bus call for initrd/main transition

11 years agopath-util: there is no function path_parent()
Lennart Poettering [Tue, 8 May 2012 21:37:25 +0000 (23:37 +0200)]
path-util: there is no function path_parent()

11 years agomain: simplify+unify logic for parsing runtime booleans
Lennart Poettering [Tue, 8 May 2012 21:36:55 +0000 (23:36 +0200)]
main: simplify+unify logic for parsing runtime booleans

11 years agologind: implement suspend/hibernate calls with inhibition logic
Lennart Poettering [Tue, 8 May 2012 17:02:25 +0000 (19:02 +0200)]
logind: implement suspend/hibernate calls with inhibition logic

11 years agosleep: implement suspend/hibernate as first class targets
Lennart Poettering [Sat, 5 May 2012 00:06:58 +0000 (02:06 +0200)]
sleep: implement suspend/hibernate as first class targets

11 years agologind: use "sleep" as generic term for "suspend", "hibernate", and later on "hybrid...
Lennart Poettering [Fri, 4 May 2012 22:46:31 +0000 (00:46 +0200)]
logind: use "sleep" as generic term for "suspend", "hibernate", and later on "hybrid suspend"

11 years agologind: fix test-inhibit
Lennart Poettering [Fri, 4 May 2012 22:39:24 +0000 (00:39 +0200)]
logind: fix test-inhibit

11 years agoautogen.sh: undef _FORTIFY_SOURCE, which now logs warnings when used with -O0
Kay Sievers [Tue, 8 May 2012 00:51:26 +0000 (02:51 +0200)]
autogen.sh: undef _FORTIFY_SOURCE, which now logs warnings when used with -O0

11 years agoutil: split-out path-util.[ch]
Kay Sievers [Mon, 7 May 2012 19:36:12 +0000 (21:36 +0200)]
util: split-out path-util.[ch]

11 years agoutil: split-out hwclock.[ch]
Kay Sievers [Mon, 7 May 2012 19:06:55 +0000 (21:06 +0200)]
util: split-out hwclock.[ch]

11 years agologind: fix memory leak
Frederic Crozat [Fri, 4 May 2012 14:14:19 +0000 (16:14 +0200)]
logind: fix memory leak

11 years agoupdate TODO
Lennart Poettering [Mon, 7 May 2012 20:20:08 +0000 (22:20 +0200)]
update TODO

11 years agoUpdate TODO
Lennart Poettering [Mon, 7 May 2012 15:16:50 +0000 (17:16 +0200)]
Update TODO

11 years agoutil: split-out conf-file.[ch]
Kay Sievers [Mon, 7 May 2012 16:55:45 +0000 (18:55 +0200)]
util: split-out conf-file.[ch]

11 years agoudev: path_id - skip PCI-only-parents for block devices
Kay Sievers [Mon, 7 May 2012 16:47:58 +0000 (18:47 +0200)]
udev: path_id - skip PCI-only-parents for block devices

11 years agoudev: use conf_files_list() to search rules files
Kay Sievers [Mon, 7 May 2012 11:21:05 +0000 (13:21 +0200)]
udev: use conf_files_list() to search rules files

11 years agoconf_files_list(): split out conf_files_list_strv()
Kay Sievers [Mon, 7 May 2012 11:20:29 +0000 (13:20 +0200)]
conf_files_list(): split out conf_files_list_strv()

11 years agoconf_files_list(): files-add() - do not canonicalize file names
Kay Sievers [Mon, 7 May 2012 11:15:25 +0000 (13:15 +0200)]
conf_files_list(): files-add() - do not canonicalize file names

File names in /etc, /run, /usr/lib are sorted/overridden by basename.
Sorting things like "/dev/null" with the basename "null" in the hash
of config files breaks the ordering and the overriding logic.

11 years agologind: implement delay inhibitor locks in addition to block inhibitor locks
Lennart Poettering [Fri, 4 May 2012 22:34:48 +0000 (00:34 +0200)]
logind: implement delay inhibitor locks in addition to block inhibitor locks

This is useful to allow applications to synchronously save data before
the system is suspended or shut down.

11 years agoupdate TODO
Kay Sievers [Fri, 4 May 2012 17:06:07 +0000 (19:06 +0200)]
update TODO

11 years agoudev: fix the ENV{} blacklist logic
Kay Sievers [Fri, 4 May 2012 00:26:08 +0000 (02:26 +0200)]
udev: fix the ENV{} blacklist logic

11 years agosystemctl: fix typo
Lennart Poettering [Thu, 3 May 2012 23:02:32 +0000 (01:02 +0200)]
systemctl: fix typo

as Sergey Ptashnick pointed out we should write "poweroff" once instead
of "reboot" twice.

11 years agosystemd-analyze: add a --user option to support user instances
Patrick McCarty [Thu, 3 May 2012 20:42:45 +0000 (13:42 -0700)]
systemd-analyze: add a --user option to support user instances

11 years agoman: clarify _TRANSPORT
Shawn Landden [Thu, 3 May 2012 22:19:01 +0000 (15:19 -0700)]
man: clarify _TRANSPORT

"resp." where it was confuses reader that stdout and stderr might go to differn't places

11 years agoupdate TODO
Lennart Poettering [Thu, 3 May 2012 22:43:36 +0000 (00:43 +0200)]
update TODO

11 years agoreadahead: store inode numbers in pack file
Lennart Poettering [Thu, 3 May 2012 22:34:12 +0000 (00:34 +0200)]
readahead: store inode numbers in pack file

If the inode nr for each file is available in the pack file we can
easily detect replaced files (like they result from package upgrades)
which we can then skip to readahead.

11 years agounits: use OOMScoreAdjust= in the unit files to set OOM score adjust
Lennart Poettering [Thu, 3 May 2012 22:15:21 +0000 (00:15 +0200)]
units: use OOMScoreAdjust= in the unit files to set OOM score adjust

11 years agoreadhead: temporarily lower the kernel's read_ahead_kb setting while collecting
Lennart Poettering [Thu, 3 May 2012 22:13:20 +0000 (00:13 +0200)]
readhead: temporarily lower the kernel's read_ahead_kb setting while collecting

While collecting readahead data we want to know exactly what userspace
accesses unblurred by the kernel's read_ahead_kb. Hence lower this
during collection, and raise it afterwards.

This is mostly based on ideas and code by Auke Kok.

11 years agocgroup: fix alloca() misuse in cg_shorten_controllers()
Lennart Poettering [Thu, 3 May 2012 21:23:38 +0000 (23:23 +0200)]
cgroup: fix alloca() misuse in cg_shorten_controllers()

11 years agodbus: handle invalid enum values better
Lennart Poettering [Thu, 3 May 2012 21:06:19 +0000 (23:06 +0200)]
dbus: handle invalid enum values better

11 years agodbus: include unit name in JobNew/JobRemoved signals
Lennart Poettering [Thu, 3 May 2012 20:53:25 +0000 (22:53 +0200)]
dbus: include unit name in JobNew/JobRemoved signals

This breaks D-Bus interface slightly, but since the D-Bus API isn't
covered by the interface stability promise this should be OK.

11 years agoservice: explicitly remove control/ subcgroup after each control command
Lennart Poettering [Thu, 3 May 2012 19:54:44 +0000 (21:54 +0200)]
service: explicitly remove control/ subcgroup after each control command

The kernel will only notify us of cgroups running empty if no subcgroups
exist anymore. Hence make sure we don't leave our own control/ subcgroup
around longer than necessary.

https://bugzilla.redhat.com/show_bug.cgi?id=818381

11 years agosystemctl: allow 'systemctl reboot -ff' to succeed even without D-Bus
Lennart Poettering [Thu, 3 May 2012 14:29:15 +0000 (16:29 +0200)]
systemctl: allow 'systemctl reboot -ff' to succeed even without D-Bus

11 years agosystemctl: print a nice error message if an unprivileged user calls systemctl reboot -ff
Lennart Poettering [Thu, 3 May 2012 14:17:58 +0000 (16:17 +0200)]
systemctl: print a nice error message if an unprivileged user calls systemctl reboot -ff