chiark / gitweb /
elogind.git
10 years agoutil: fix build
Lennart Poettering [Wed, 12 Oct 2011 02:42:38 +0000 (04:42 +0200)]
util: fix build

10 years agojournal: only fallocate() what we really need to avoid slowness on file systems which...
Lennart Poettering [Wed, 12 Oct 2011 02:41:27 +0000 (04:41 +0200)]
journal: only fallocate() what we really need to avoid slowness on file systems which do not support fallocate natively

10 years agoMerge branch 'master' into journal
Lennart Poettering [Wed, 12 Oct 2011 02:29:11 +0000 (04:29 +0200)]
Merge branch 'master' into journal

10 years agoutil: properly detect what the last capability is
Lennart Poettering [Tue, 11 Oct 2011 20:30:31 +0000 (22:30 +0200)]
util: properly detect what the last capability is

10 years agobuild-sys: bump release for v37 v37
Lennart Poettering [Tue, 11 Oct 2011 18:46:56 +0000 (20:46 +0200)]
build-sys: bump release for v37

10 years agoservice: don't try to guess PID for SysV services anymore
Lennart Poettering [Tue, 11 Oct 2011 18:21:06 +0000 (20:21 +0200)]
service: don't try to guess PID for SysV services anymore

As it turns out there are quite a number of SysV services too broken to
make the guessing work: instead of returning in the parent only after
the child is fully initialized they return immediately. The effect is
that the guessing in systemd might happen too early, at a time where the
final main process doesn't exist yet.

By turning this off we won't try to detect the main pid anymore, with
the effect that all processes of the service in question are considered
equally likely to be the main process.

10 years agolocaled: make sure s-s-k doesn't create any X11 config files anymore
Lennart Poettering [Tue, 11 Oct 2011 18:20:01 +0000 (20:20 +0200)]
localed: make sure s-s-k doesn't create any X11 config files anymore

10 years agolocaled: shorten generate-kbd-model-map
Zbigniew Jędrzejewski-Szmek [Tue, 11 Oct 2011 10:34:14 +0000 (12:34 +0200)]
localed: shorten generate-kbd-model-map

Output is identical.

10 years agopager: add _noreturn_ to pager_fallback()
Zbigniew Jędrzejewski-Szmek [Tue, 11 Oct 2011 09:27:06 +0000 (11:27 +0200)]
pager: add _noreturn_ to pager_fallback()

src/pager.c: In function ‘pager_fallback’:
src/pager.c:35:13: warning: function might be possible candidate for attribute ‘noreturn’ [-Wmissing-noreturn]

10 years agounit: introduce ConditionCapability
Lennart Poettering [Tue, 11 Oct 2011 13:16:52 +0000 (15:16 +0200)]
unit: introduce ConditionCapability

10 years agounits: forgot target units
Lennart Poettering [Tue, 11 Oct 2011 12:26:20 +0000 (14:26 +0200)]
units: forgot target units

10 years agounits: increase LimitNOFILE a bit
Lennart Poettering [Tue, 11 Oct 2011 02:43:29 +0000 (04:43 +0200)]
units: increase LimitNOFILE a bit

since we need one fd per session (for logind) and one fd per service
(for stdout-syslog-bridge) increase the default rlimit a bit.

10 years agologind: fail gracefully if too many sessions are created
Lennart Poettering [Tue, 11 Oct 2011 02:43:01 +0000 (04:43 +0200)]
logind: fail gracefully if too many sessions are created

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

10 years agotimedate: fall back to /etc/sysconfig/clock on Fedora, for compatibility with legacy
Lennart Poettering [Tue, 11 Oct 2011 02:23:35 +0000 (04:23 +0200)]
timedate: fall back to /etc/sysconfig/clock on Fedora, for compatibility with legacy

10 years agounits: remount root and API FS before all mount units are applied
Lennart Poettering [Tue, 11 Oct 2011 01:41:04 +0000 (03:41 +0200)]
units: remount root and API FS before all mount units are applied

In order to ensure that bind mounts copy the final mount settings to the
new bind mount make the root and API FS mount options are applied before
the other file systems are mounted.

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

10 years agounits: introduce local-fs-pre.target and remote-fs-pre.target
Lennart Poettering [Tue, 11 Oct 2011 01:33:53 +0000 (03:33 +0200)]
units: introduce local-fs-pre.target and remote-fs-pre.target

This hook target enables services to order themselves between
network.target and remote mounts, which is needed for GFS2 and similar
systems.

10 years agol10n: Reword the polish translation a bit
Zbigniew Jędrzejewski-Szmek [Tue, 20 Sep 2011 07:09:15 +0000 (09:09 +0200)]
l10n: Reword the polish translation a bit

s/siedzenie/stanowisko/: they both translate to seat in English, but 'stanowisko'
is a place where you work, while 'siedzenie' is like a chair.

s/podłączanie/podłączenie/: we are doing it now, now sometime in the future.

10 years agoman: document list-unit-files
Ran Benita [Sat, 24 Sep 2011 09:04:16 +0000 (12:04 +0300)]
man: document list-unit-files

It's documented in the --help, but not in the manpage.

10 years agosd-login.h: correct spelling mistakes in comments
Dave Reisner [Mon, 26 Sep 2011 13:25:27 +0000 (09:25 -0400)]
sd-login.h: correct spelling mistakes in comments

10 years agohostname-setup: Frugalware switched to /etc/hostname
Miklos Vajna [Tue, 27 Sep 2011 18:45:51 +0000 (20:45 +0200)]
hostname-setup: Frugalware switched to /etc/hostname

10 years agoreadahead: lower max file size for readahead
Paolo Bonzini [Mon, 10 Oct 2011 23:43:58 +0000 (01:43 +0200)]
readahead: lower max file size for readahead

https://bugs.freedesktop.org/show_bug.cgi?id=41336

10 years agoman: .include directive does not include as textual include it includes by parsing...
Barry Scott [Mon, 3 Oct 2011 10:50:10 +0000 (11:50 +0100)]
man: .include directive does not include as textual include it includes by parsing the include file.

This means that section headers must be used inside of
a .include file otherwise all the lines are ignored.

10 years agoman: for ExecStart= provide more details on env var substitution and how that turns...
Barry Scott [Mon, 3 Oct 2011 10:50:09 +0000 (11:50 +0100)]
man: for ExecStart= provide more details on env var substitution and how that turns into arguments.

For EnvironmentFile= explain that double quotes can be used
to protect whitespace.

10 years agoupdate TODO
Lennart Poettering [Mon, 10 Oct 2011 23:00:08 +0000 (01:00 +0200)]
update TODO

10 years agoutil: fix close() call on wrong variable
Thomas Jarosch [Wed, 5 Oct 2011 20:31:41 +0000 (22:31 +0200)]
util: fix close() call on wrong variable

Detected by "cppcheck" (actually it detected a file descriptor leak)

10 years agotmpfiles: fix file descriptor leak
Thomas Jarosch [Wed, 5 Oct 2011 20:30:49 +0000 (22:30 +0200)]
tmpfiles: fix file descriptor leak

Detected by "cppcheck"

10 years agoupdate TODO
Lennart Poettering [Mon, 10 Oct 2011 20:22:47 +0000 (22:22 +0200)]
update TODO

10 years agotest_virtualization: do not try to compare id in !virt context
Kay Sievers [Sun, 9 Oct 2011 14:36:45 +0000 (16:36 +0200)]
test_virtualization: do not try to compare id in !virt context

10 years agoupdate TODO
Kay Sievers [Sun, 9 Oct 2011 13:54:20 +0000 (15:54 +0200)]
update TODO

10 years agojournal: implement parallel traversal in client
Lennart Poettering [Sat, 8 Oct 2011 00:20:44 +0000 (02:20 +0200)]
journal: implement parallel traversal in client

10 years agojournal: split user logs into their own journal files
Lennart Poettering [Fri, 7 Oct 2011 21:03:07 +0000 (23:03 +0200)]
journal: split user logs into their own journal files

10 years agojournal: replace linked list by hashmap when merging files
Lennart Poettering [Fri, 7 Oct 2011 20:00:05 +0000 (22:00 +0200)]
journal: replace linked list by hashmap when merging files

10 years agojournal: store XOR combination of entry data object hashes to identify hash lines
Lennart Poettering [Fri, 7 Oct 2011 19:56:11 +0000 (21:56 +0200)]
journal: store XOR combination of entry data object hashes to identify hash lines

10 years agojournal: add preliminary incomplete implementation
Lennart Poettering [Fri, 7 Oct 2011 19:06:39 +0000 (21:06 +0200)]
journal: add preliminary incomplete implementation

10 years agoupdate TODO
Lennart Poettering [Fri, 7 Oct 2011 20:00:23 +0000 (22:00 +0200)]
update TODO

10 years agohashmap: use different version of DJB's hash algorithm that uses shifting instead...
Lennart Poettering [Fri, 7 Oct 2011 19:00:48 +0000 (21:00 +0200)]
hashmap: use different version of DJB's hash algorithm that uses shifting instead of multiplication

10 years agoupdate TODO
Lennart Poettering [Fri, 7 Oct 2011 18:50:59 +0000 (20:50 +0200)]
update TODO

10 years agologind: properly generate session creation response on dbus
Lennart Poettering [Mon, 3 Oct 2011 23:38:13 +0000 (01:38 +0200)]
logind: properly generate session creation response on dbus

This fixes the various reported issues with dbus message parsing when
running su.

10 years agosystemctl: fix corrupted output of units
Michal Schmidt [Thu, 29 Sep 2011 19:18:17 +0000 (21:18 +0200)]
systemctl: fix corrupted output of units

On some systems the list of units in systemctl output came out wrong,
all on one line and with missing descriptions.

It turns out printf() really attempts to mmap 2G memory when INT_MAX is
passed as the field width. On machines with small virtual memory
without overcommit the mmap inside printf() failed.

Do not use INT_MAX for unlimited width.

10 years agolocaled: handle multiple X11 kbd layouts
Lennart Poettering [Thu, 29 Sep 2011 17:44:32 +0000 (19:44 +0200)]
localed: handle multiple X11 kbd layouts

https://bugs.freedesktop.org/show_bug.cgi?id=41341

10 years agosystemctl: fix error message when no connection to systemd is available
Lennart Poettering [Thu, 29 Sep 2011 14:00:29 +0000 (16:00 +0200)]
systemctl: fix error message when no connection to systemd is available

10 years agosystemctl: fix detection whether the dbus connection is available
Lennart Poettering [Thu, 29 Sep 2011 13:31:53 +0000 (15:31 +0200)]
systemctl: fix detection whether the dbus connection is available

10 years agobuild-sys: fix build
Lennart Poettering [Thu, 29 Sep 2011 13:09:18 +0000 (15:09 +0200)]
build-sys: fix build

10 years agovconsole: don't parse Fedora's KEYMAP= kernel parameters anymore
Lennart Poettering [Wed, 28 Sep 2011 02:25:20 +0000 (04:25 +0200)]
vconsole: don't parse Fedora's KEYMAP= kernel parameters anymore

KEYMAP are use to pass keymap configuration to initrd, but not to the
system itself. Since the initrd might get out of date we need to make
sure that changes made in userspace override the settings from the
cmdline, hence drpo any use of it all for these variables.

10 years agolocaled: add SetX11Keyboard() and SetVConsoleKeyboard() bus calls
Lennart Poettering [Wed, 28 Sep 2011 02:25:13 +0000 (04:25 +0200)]
localed: add SetX11Keyboard() and SetVConsoleKeyboard() bus calls

10 years agoanalyze: always draw top kernel, initramfs, userspace bars
Kay Sievers [Tue, 27 Sep 2011 10:52:09 +0000 (12:52 +0200)]
analyze: always draw top kernel, initramfs, userspace bars

Based on Koen Kooi's patch. Renamed initrd to initramfs.

10 years agosystemctl: better width and alignment of fields
Michal Schmidt [Tue, 27 Sep 2011 09:20:20 +0000 (11:20 +0200)]
systemctl: better width and alignment of fields

Provide nicer output by taking advantage of the available columns.

Expand UNIT and DESCRIPTION if possible. Economize the space:
 - never give UNIT more width than it can use.
 - if there's a shortage of space, give 25 columns to UNIT, even
   if it would result in overflowing the total columns. The field would not
   be useful below width 25.
 - then if possible, assign up to 25 columns to DESCRIPTION.
 - then split any remaining space evenly between UNIT and DESCRIPTION.

Keep the columns aligned even with '--full'.

10 years agosystemctl: print the legend regardless of stdout type, add --no-legend
Michal Schmidt [Mon, 26 Sep 2011 22:48:40 +0000 (00:48 +0200)]
systemctl: print the legend regardless of stdout type, add --no-legend

Print the legend (the column headers and the footer with hints) by
default even to non-tty output. People seem to get confused by the
difference when they redirect the output.

Add a parameter to suppress the printing of the legend.

Related-to: https://bugzilla.redhat.com/show_bug.cgi?id=713567

10 years agopager: add a trivial internal pager
Michal Schmidt [Mon, 26 Sep 2011 21:02:56 +0000 (23:02 +0200)]
pager: add a trivial internal pager

In the very unlikely scenario where none of the external pagers is
available, use an internal implementation to pass stdin to stdout.

Don't bother with trying 'cat', because it's no more useful than the
internal pager.

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

10 years agobuild-sys: bump release v36
Lennart Poettering [Fri, 23 Sep 2011 16:30:02 +0000 (18:30 +0200)]
build-sys: bump release

10 years agoreadahead: opt out of bridge logging for readahead in order not to delay things unnec...
Lennart Poettering [Fri, 23 Sep 2011 15:42:54 +0000 (17:42 +0200)]
readahead: opt out of bridge logging for readahead in order not to delay things unnecessarily

10 years agoservice: fix up std output/error before we add dependencies to the bridge socket
Lennart Poettering [Fri, 23 Sep 2011 15:42:21 +0000 (17:42 +0200)]
service: fix up std output/error before we add dependencies to the bridge socket

10 years agovirt: add missing header inclusion
Lennart Poettering [Fri, 23 Sep 2011 15:20:45 +0000 (17:20 +0200)]
virt: add missing header inclusion

10 years agocondition: optionally test against type of virtualization (vm vs. container)
Lennart Poettering [Fri, 23 Sep 2011 15:09:49 +0000 (17:09 +0200)]
condition: optionally test against type of virtualization (vm vs. container)

10 years agoutil: move virtualization detection into its own files, and extend return codes
Lennart Poettering [Fri, 23 Sep 2011 15:00:33 +0000 (17:00 +0200)]
util: move virtualization detection into its own files, and extend return codes

10 years agoanalyze: report startup time in plot mode as well
Koen Kooi [Thu, 22 Sep 2011 13:24:18 +0000 (15:24 +0200)]
analyze: report startup time in plot mode as well

It now prints something like "Startup finished in 1507ms (kernel) + 850ms (userspace) = 2357ms" below the legend.

10 years agoanalyze: always draw 1s marker for scale
Koen Kooi [Thu, 22 Sep 2011 09:30:04 +0000 (11:30 +0200)]
analyze: always draw 1s marker for scale

In situations like this:

root@omap4430-panda:~# systemd-analyze
Startup finished in 1499ms (kernel) + 916ms (userspace) = 2416ms

The svg plot will only have the 0s marker and no subsequent markers for scale. This patch forces the 1s marker to always be drawn.

10 years agounit: fix complementing of requirement deps with After deps for targets
Michal Schmidt [Fri, 23 Sep 2011 11:58:00 +0000 (13:58 +0200)]
unit: fix complementing of requirement deps with After deps for targets

'man systemd.target' says:
  Unless DefaultDependencies= is set to false, target units will
  implicitly complement all configured dependencies of type
  Wants=, Requires=, RequiresOverridable= with dependencies of type
  After=  if the units in question also have DefaultDependencies=true.

It did not work because of a forgotten negation.

10 years agoutil: don't fail if no id was passed to detect_container()
Lennart Poettering [Fri, 23 Sep 2011 03:33:33 +0000 (05:33 +0200)]
util: don't fail if no id was passed to detect_container()

10 years agoutil: detect systemd-nspawn without relying on ns cgroup tree
Lennart Poettering [Fri, 23 Sep 2011 02:38:39 +0000 (04:38 +0200)]
util: detect systemd-nspawn without relying on ns cgroup tree

10 years agonspawn: set env var container=systemd-nspawn, following the scheme lxc introduced
Lennart Poettering [Fri, 23 Sep 2011 02:03:18 +0000 (04:03 +0200)]
nspawn: set env var container=systemd-nspawn, following the scheme lxc introduced

10 years agologinctl: fix typo
Lennart Poettering [Fri, 23 Sep 2011 00:53:55 +0000 (02:53 +0200)]
loginctl: fix typo

10 years agollvm-analyze: change a few things to make llvm-analyze show fewer false positives
Lennart Poettering [Fri, 23 Sep 2011 00:39:54 +0000 (02:39 +0200)]
llvm-analyze: change a few things to make llvm-analyze show fewer false positives

10 years agollvm-analyze: fix some bugs found by llvm-analyze
Lennart Poettering [Fri, 23 Sep 2011 00:39:28 +0000 (02:39 +0200)]
llvm-analyze: fix some bugs found by llvm-analyze

10 years agoutil: improve signal_to_string, signal_from_string
Michal Schmidt [Fri, 23 Sep 2011 07:39:40 +0000 (09:39 +0200)]
util: improve signal_to_string, signal_from_string

signal_to_string:
 Produce names for SIGRTMIN+n.
 Never give an "n/a" result. In the worst case give the number itself as
 a string.

signal_from_string:
 Parse "RTMIN+n".
 Parse any valid signal number.

10 years agomanager: fix job mode for SIGRTMIN+1, +2
Michal Schmidt [Fri, 23 Sep 2011 07:37:45 +0000 (09:37 +0200)]
manager: fix job mode for SIGRTMIN+1, +2

The test did not work as intended and always resulted in JOB_REPLACE.

10 years agocondition: fix reversed tests if path does not exist at all
Michal Schmidt [Fri, 23 Sep 2011 00:10:00 +0000 (02:10 +0200)]
condition: fix reversed tests if path does not exist at all

CONDITION_PATH_IS_DIRECTORY, CONDITION_PATH_IS_SYMBOLIC_LINK and
CONDITION_FILE_IS_EXECUTABLE gave reversed results when the path
did not exist at all.

10 years agocoverity: change a few things so that coverity doesn't show so many false positives
Lennart Poettering [Thu, 22 Sep 2011 23:44:36 +0000 (01:44 +0200)]
coverity: change a few things so that coverity doesn't show so many false positives

10 years agocoverity: fix a couple of bugs found by coverity
Lennart Poettering [Thu, 22 Sep 2011 23:43:28 +0000 (01:43 +0200)]
coverity: fix a couple of bugs found by coverity

10 years agounits: fix rescue.service race with plymouth
Michal Schmidt [Thu, 22 Sep 2011 21:52:38 +0000 (23:52 +0200)]
units: fix rescue.service race with plymouth

It was possible for the "ExecStartPre=-/bin/plymouth quit" to race
with plymouth-start.service which is pulled in indirectly by
basic.target -> sysinit.target.

The race left plymouth running on the terminal, making it unusable for
rescue purposes.

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

10 years agoman: document that PathChanged= does not care for simple writes but only for close...
Lennart Poettering [Thu, 22 Sep 2011 19:37:01 +0000 (21:37 +0200)]
man: document that PathChanged= does not care for simple writes but only for close()-after-write()

10 years agounit: don't recheck conditions when a unit is already starting but unit_start() is...
Lennart Poettering [Thu, 22 Sep 2011 19:32:18 +0000 (21:32 +0200)]
unit: don't recheck conditions when a unit is already starting but unit_start() is invoked

10 years agoman: document pkg-config line for sd-daemon
Lennart Poettering [Thu, 22 Sep 2011 19:16:33 +0000 (21:16 +0200)]
man: document pkg-config line for sd-daemon

10 years agoman: document that sd-daemon.[ch] is now available as shared library
Lennart Poettering [Thu, 22 Sep 2011 19:13:41 +0000 (21:13 +0200)]
man: document that sd-daemon.[ch] is now available as shared library

10 years agoservice: warn if a service fails to write its PID file
Michal Schmidt [Thu, 22 Sep 2011 11:10:32 +0000 (13:10 +0200)]
service: warn if a service fails to write its PID file

Warn if a service promises to write a PID file (using 'PIDFile=' in the
unit file or '# pidfile:' in SysV header), but fails to keep the
promise.

This warning will likely trigger also for the forking services with a
racy daemonization, which exit the original process before the PID file
is written.

10 years agoupdate TODO
Lennart Poettering [Thu, 22 Sep 2011 02:18:18 +0000 (04:18 +0200)]
update TODO

10 years agoselinux: reopen log when loading the SELinux policy fails
Lennart Poettering [Thu, 22 Sep 2011 02:05:40 +0000 (04:05 +0200)]
selinux: reopen log when loading the SELinux policy fails

10 years agoservice: if StandardInput=socket and StandardOutput=inherit imply socket for output...
Lennart Poettering [Thu, 22 Sep 2011 01:29:51 +0000 (03:29 +0200)]
service: if StandardInput=socket and StandardOutput=inherit imply socket for output, don't imply default output

This is useful for inetd-style per-connection services, so that they
again can simply specify StandardOutput=socket to connect all three fds
to the socket.

10 years agoudev: asynchronously mount fuse/confifgs as soon as the kmods are loaded
Lennart Poettering [Thu, 22 Sep 2011 01:02:15 +0000 (03:02 +0200)]
udev: asynchronously mount fuse/confifgs as soon as the kmods are loaded

10 years agounits: introduce unit file for FUSE fs
Lennart Poettering [Thu, 22 Sep 2011 01:00:04 +0000 (03:00 +0200)]
units: introduce unit file for FUSE fs

FUSE and configfs is very very similar, so handle both the same way.

10 years agounits: In MeeGo there was more than one ExecStart lines present that caused systemd...
Marko Saukko [Wed, 21 Sep 2011 19:38:46 +0000 (21:38 +0200)]
units: In MeeGo there was more than one ExecStart lines present that caused systemd to refuse the rescue.service

10 years agomount: pull in quota tools from fstab lines with 'quota' option, too
Lennart Poettering [Wed, 21 Sep 2011 18:19:43 +0000 (20:19 +0200)]
mount: pull in quota tools from fstab lines with 'quota' option, too

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

10 years agojob: after converting a job from restart to start readd it to run queue
Lennart Poettering [Wed, 21 Sep 2011 17:56:15 +0000 (19:56 +0200)]
job: after converting a job from restart to start readd it to run queue

When we converted a restart job it's time to look again whether any of
its dependencies are now runnable.

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

10 years agoupdate TODO
Kay Sievers [Wed, 21 Sep 2011 17:33:52 +0000 (19:33 +0200)]
update TODO

10 years agounits: we don't need to check whether /sys/kernel/security is already mounted since...
Lennart Poettering [Wed, 21 Sep 2011 16:06:24 +0000 (18:06 +0200)]
units: we don't need to check whether /sys/kernel/security is already mounted since we'll enumerate that fact anyway

10 years agoupdate TODO
Lennart Poettering [Wed, 21 Sep 2011 01:56:07 +0000 (03:56 +0200)]
update TODO

10 years agounits: drop automount unit for /dev/hugepages
Lennart Poettering [Wed, 21 Sep 2011 01:35:19 +0000 (03:35 +0200)]
units: drop automount unit for /dev/hugepages

Since hugetlbfs cannot be compiled as kernel module there's little point
in doing on-demand mounting via autofs for it.

10 years agounits: drop automount unit for /dev/mqueue
Lennart Poettering [Wed, 21 Sep 2011 01:29:47 +0000 (03:29 +0200)]
units: drop automount unit for /dev/mqueue

Since the mqueue support cannot be built as a module there's little
benefit in having an autofs mount point set up for this.

10 years agounits: drop automount unit for /sys/kernel/security
Lennart Poettering [Wed, 21 Sep 2011 01:26:37 +0000 (03:26 +0200)]
units: drop automount unit for /sys/kernel/security

Since securityfs cannot be build as module there's little value in
having an on-demand autofs mount point for it.

10 years agounits: drop automount unit for /sys/kernel/debug
Lennart Poettering [Wed, 21 Sep 2011 01:20:28 +0000 (03:20 +0200)]
units: drop automount unit for /sys/kernel/debug

Since debugfs cannot be compiled as module there's little benefit in
having it as autofs mount point.

10 years agounits: drop /sys/kernel/config automount unit
Lennart Poettering [Wed, 21 Sep 2011 01:16:00 +0000 (03:16 +0200)]
units: drop /sys/kernel/config automount unit

The mount point directory /sys/kernel/config is only created after the
module is loaded, hence there's little value in having this an automount
unit: the runtime penalty for mounting an autofs here should be the same
as for a real mount.

10 years agomodules-load: filter out double modules
Lennart Poettering [Wed, 21 Sep 2011 00:57:02 +0000 (02:57 +0200)]
modules-load: filter out double modules

10 years agoservice: minor change in service_load_pid_file return value
Michal Schmidt [Wed, 21 Sep 2011 00:25:17 +0000 (02:25 +0200)]
service: minor change in service_load_pid_file return value

Return 0 only if the PID was really loaded. If no PIDFile= is defined,
return -ENOENT.

Only one caller cares about the return value of this function and this
change makes the usage nicer.

10 years agocondition: add ConditionPathIsSymbolicLink
Michal Schmidt [Tue, 20 Sep 2011 23:29:38 +0000 (01:29 +0200)]
condition: add ConditionPathIsSymbolicLink

10 years agocondition: always follow symlinks for condition checks, to mimic test
Lennart Poettering [Tue, 20 Sep 2011 23:07:25 +0000 (01:07 +0200)]
condition: always follow symlinks for condition checks, to mimic test

10 years agoservice: handle forking services that move to a new PID
Michal Schmidt [Tue, 20 Sep 2011 19:43:30 +0000 (21:43 +0200)]
service: handle forking services that move to a new PID

When some forking daemons receive a SIGHUP, they re-execute themselves
and consequently change to a new main PID. As long as they update the
PID file in the right order (before exiting the old PID), we can detect
that and avoid killing them.

10 years agounits: don't initialize automount point for securityfs if the initrd already mounted...
Lennart Poettering [Tue, 20 Sep 2011 22:45:22 +0000 (00:45 +0200)]
units: don't initialize automount point for securityfs if the initrd already mounted the directory

10 years agounit: introduce ConditionPathIsMountPoint=
Lennart Poettering [Tue, 20 Sep 2011 22:44:51 +0000 (00:44 +0200)]
unit: introduce ConditionPathIsMountPoint=

10 years agoman: document which condition tests follow symlinks
Michal Schmidt [Tue, 20 Sep 2011 10:28:22 +0000 (12:28 +0200)]
man: document which condition tests follow symlinks

ConditionPathExists and ConditionFileIsExecutable follow symlinks.
ConditionPathIsDirectory does not follow symlinks.
(XXX: is this actually the desired behavior?)

10 years agounits: direct stdout/stderr of rescue shells to tty
Michal Schmidt [Tue, 20 Sep 2011 10:11:04 +0000 (12:11 +0200)]
units: direct stdout/stderr of rescue shells to tty

With output of services going to syslog by default now, the rescue shell
units need to direct their output to tty explicitly.
Specify stderr too, just in case.