]> err.no Git - systemd/log
systemd
12 years agoservice: add StartLimitInterval/StartLimitBurst/StartLimitAction
Michael Olbrich [Thu, 9 Feb 2012 12:05:23 +0000 (13:05 +0100)]
service: add StartLimitInterval/StartLimitBurst/StartLimitAction

12 years agoman: Clarify man page with respect to automatic fstab dependencies
Bill Nottingham [Thu, 9 Feb 2012 19:04:38 +0000 (20:04 +0100)]
man: Clarify man page with respect to automatic fstab dependencies

Automatic mounts will be added if 'MountAuto=yes' is in system.conf,
regardless of whether comment=systemd.mount is set.

12 years agoinstall: fix incorrect 'Access denied' message with a non-existent unit
Michal Schmidt [Thu, 9 Feb 2012 09:36:56 +0000 (10:36 +0100)]
install: fix incorrect 'Access denied' message with a non-existent unit

With "systemctl is-enabled non-existent.service"
_UNIT_FILE_STATE_INVALID (-1) was wrongly interpreted as -errno.
Return -ENOENT in this case.

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

12 years agosystemctl: check for no more work after chkconfig
Michal Schmidt [Thu, 9 Feb 2012 09:05:15 +0000 (10:05 +0100)]
systemctl: check for no more work after chkconfig

Avoid a bogus message from 'systemctl enable ...' when all units given
are SysV services:
   Warning: unit files do not carry install information. No operation
   executed.

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

12 years agoservice: ignore SIGPIPE by default v41
Lennart Poettering [Thu, 9 Feb 2012 02:18:04 +0000 (03:18 +0100)]
service: ignore SIGPIPE by default

12 years agoupdate TODO
Lennart Poettering [Thu, 9 Feb 2012 01:13:36 +0000 (02:13 +0100)]
update TODO

12 years agojournal: limit caps we pass to journald
Lennart Poettering [Thu, 9 Feb 2012 01:06:13 +0000 (02:06 +0100)]
journal: limit caps we pass to journald

12 years agomodules-load: resolve aliases before insert modules
Dave Reisner [Thu, 9 Feb 2012 00:39:35 +0000 (19:39 -0500)]
modules-load: resolve aliases before insert modules

This keeps behavior in line calling /sbin/modprobe -- aliases will be
resolved to the relevant modules, and errors from inserting modules
which are already loaded are ignored.

12 years agobuild-sys: get rid of a few unnecessary AC_SUBST calls
Lennart Poettering [Thu, 9 Feb 2012 00:41:39 +0000 (01:41 +0100)]
build-sys: get rid of a few unnecessary AC_SUBST calls

12 years agokmod: make GCC shut up
Lennart Poettering [Thu, 9 Feb 2012 00:24:40 +0000 (01:24 +0100)]
kmod: make GCC shut up

12 years agoman: document x-systemd-device-timeout=
Lennart Poettering [Thu, 9 Feb 2012 00:20:09 +0000 (01:20 +0100)]
man: document x-systemd-device-timeout=

12 years agobuild-sys: prepare release 41
Lennart Poettering [Thu, 9 Feb 2012 00:06:07 +0000 (01:06 +0100)]
build-sys: prepare release 41

12 years agoman: fix XML
Lennart Poettering [Wed, 8 Feb 2012 23:52:26 +0000 (00:52 +0100)]
man: fix XML

Spotted by Sergey Ptashnick.

12 years agomodules-load: use libkmod rather than modprobe
Tom Gundersen [Wed, 8 Feb 2012 20:52:19 +0000 (21:52 +0100)]
modules-load: use libkmod rather than modprobe

12 years agokmod-setup: use libkmod rather than modprobe
Tom Gundersen [Wed, 8 Feb 2012 20:52:18 +0000 (21:52 +0100)]
kmod-setup: use libkmod rather than modprobe

12 years agoupdate TODO
Lennart Poettering [Wed, 8 Feb 2012 20:59:18 +0000 (21:59 +0100)]
update TODO

12 years agoratelimit: if interval/burst are set to 0, assume ratelimiting shall be disabled
Lennart Poettering [Wed, 8 Feb 2012 20:35:49 +0000 (21:35 +0100)]
ratelimit: if interval/burst are set to 0, assume ratelimiting shall be disabled

12 years agoman: document the WATCHDOG_USEC environment variable
Lennart Poettering [Wed, 8 Feb 2012 20:24:41 +0000 (21:24 +0100)]
man: document the WATCHDOG_USEC environment variable

12 years agoservice: set WATCHDOG_USEC environmen variable
Michael Olbrich [Wed, 8 Feb 2012 09:10:35 +0000 (10:10 +0100)]
service: set WATCHDOG_USEC environmen variable

12 years agoservice: introduce WatchdogSec and hook up the watchdog with the existing failure...
Michael Olbrich [Wed, 8 Feb 2012 09:10:34 +0000 (10:10 +0100)]
service: introduce WatchdogSec and hook up the watchdog with the existing failure logic

12 years agoman: document systemd.setenv=
Lennart Poettering [Wed, 8 Feb 2012 15:33:16 +0000 (16:33 +0100)]
man: document systemd.setenv=

12 years agosystemd: Add systemd.setenv for /proc/cmdline parsing.
William Douglas [Tue, 7 Feb 2012 20:31:20 +0000 (12:31 -0800)]
systemd: Add systemd.setenv for /proc/cmdline parsing.

Check for systemd.setenv when parsing /proc/cmdline.
ex: systemd.setenv=PATH=/opt/bin

12 years agomove /usr/bin/systemd to /usr/lib/systemd/systemd
Kay Sievers [Tue, 7 Feb 2012 23:08:10 +0000 (00:08 +0100)]
move /usr/bin/systemd to /usr/lib/systemd/systemd

12 years agologind: Terminate bus_login_session_user_properties
Benjamin Franzke [Tue, 7 Feb 2012 21:39:35 +0000 (22:39 +0100)]
logind: Terminate bus_login_session_user_properties

Fixes segfault in systemd-logind, triggered by:
systemd-loginctl show-session $XDG_SESSION_ID.

Bug introduced by d200735e13c52dcfe36c0e066f9f6c2fbfb85a9c,
so only systemd v39 is affected.

12 years agologind: fix introspection data
Lennart Poettering [Tue, 7 Feb 2012 19:12:21 +0000 (20:12 +0100)]
logind: fix introspection data

12 years agologind: introduce ActivateSessionOnSeat()
Lennart Poettering [Tue, 7 Feb 2012 19:12:13 +0000 (20:12 +0100)]
logind: introduce ActivateSessionOnSeat()

12 years agoratelimit: fix macro definition
Lennart Poettering [Tue, 7 Feb 2012 14:56:53 +0000 (15:56 +0100)]
ratelimit: fix macro definition

12 years agomain: use a shorter default $PATH if /usr is merged
Lennart Poettering [Tue, 7 Feb 2012 14:56:28 +0000 (15:56 +0100)]
main: use a shorter default $PATH if /usr is merged

12 years agoconfigure: it makes no sense to install systemd with stow
Lennart Poettering [Tue, 7 Feb 2012 13:43:33 +0000 (14:43 +0100)]
configure: it makes no sense to install systemd with stow

12 years agoupdate TODO
Lennart Poettering [Tue, 7 Feb 2012 13:39:04 +0000 (14:39 +0100)]
update TODO

12 years agomount: adjust dependencies for remote filesystems
Michal Schmidt [Tue, 7 Feb 2012 10:05:18 +0000 (11:05 +0100)]
mount: adjust dependencies for remote filesystems

Currently remote mounts automatically get:
 After=remote-fs-pre.target network.target

remote-fs-pre.target is already After=network.target. Just make sure
remote-fs-pre.target is pulled in by remote-fs.target if any remote
filesystems are configured.
For the mount units it is then sufficient to get:
 After=remote-fs-pre.target

Later NetworkManager will hook its NM-wait-online.service into
remote-fs-pre.target.wants in order to remove the need for the administrator
to enable the service manually when he has any remote filesystems.

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

12 years agoNEWS: update v40
Lennart Poettering [Tue, 7 Feb 2012 02:38:23 +0000 (03:38 +0100)]
NEWS: update

12 years agobuild-sys: bump release
Lennart Poettering [Tue, 7 Feb 2012 02:32:03 +0000 (03:32 +0100)]
build-sys: bump release

12 years agoautogen.sh: detect historic split-system-directories and add root options
Kay Sievers [Tue, 7 Feb 2012 02:23:05 +0000 (03:23 +0100)]
autogen.sh: detect historic split-system-directories and add root options

12 years agocgroup: when getting cgroup empty notifications, always search up the tree
Lennart Poettering [Fri, 3 Feb 2012 04:25:31 +0000 (05:25 +0100)]
cgroup: when getting cgroup empty notifications, always search up the tree

12 years agopath: convert failure field to enum
Lennart Poettering [Fri, 3 Feb 2012 04:04:48 +0000 (05:04 +0100)]
path: convert failure field to enum

12 years agoswap: replace failure boolean by result enum
Lennart Poettering [Fri, 3 Feb 2012 03:47:32 +0000 (04:47 +0100)]
swap: replace failure boolean by result enum

12 years agotimer: convert failure bool into enum
Lennart Poettering [Fri, 3 Feb 2012 03:03:21 +0000 (04:03 +0100)]
timer: convert failure bool into enum

12 years agoautomount: convert failure boolean to enum
Lennart Poettering [Fri, 3 Feb 2012 02:27:25 +0000 (03:27 +0100)]
automount: convert failure boolean to enum

12 years agomount: replace failure boolean by enum
Lennart Poettering [Fri, 3 Feb 2012 02:10:56 +0000 (03:10 +0100)]
mount: replace failure boolean by enum

12 years agosocket: replace failure boolean by enum
Lennart Poettering [Fri, 3 Feb 2012 01:31:54 +0000 (02:31 +0100)]
socket: replace failure boolean by enum

12 years agoservice: replace "failure" boolean by enum, and export it
Lennart Poettering [Fri, 3 Feb 2012 01:01:35 +0000 (02:01 +0100)]
service: replace "failure" boolean by enum, and export it

This should give admins more useful hints why a service failed.

12 years agoupdate TODO
Lennart Poettering [Thu, 2 Feb 2012 01:21:59 +0000 (02:21 +0100)]
update TODO

12 years agoutil: prevent daemon-reload from reaping service processes.
Chris Paulson-Ellis [Thu, 2 Feb 2012 17:32:05 +0000 (17:32 +0000)]
util: prevent daemon-reload from reaping service processes.

The reaping of generator processes run as part of a daemon-reload should not
call waitid(PID_ALL). The waitid() call in execute_directory() is intended only
to reap the executed processes, but if a service process exits at about the
same time as a daemon-reload, then that service process is reaped as well,
preventing it from being reaped in the proper place in
manager_dispatch_sigchld().

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

12 years agosd-daemon: support for building sd-daemon.c with Bionic (Android)
Alvaro Soliverez [Mon, 7 Nov 2011 18:10:25 +0000 (15:10 -0300)]
sd-daemon: support for building sd-daemon.c with Bionic (Android)

sd-daemon.h is a drop-in file, so we should make sure it doesn't break
builds for anybody.

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

12 years agomanager: tell correctly if the manager is booting
Michal Schmidt [Thu, 2 Feb 2012 11:39:33 +0000 (12:39 +0100)]
manager: tell correctly if the manager is booting

The assumption that the initial job is the job with id==1 is incorrect.
Some jobs may be enqueued before the job that starts the default unit as
in this example:

 -.mount changed dead -> mounted
 Trying to enqueue job quotacheck.service/start/fail
 Installed new job quotacheck.service/start as 1
 Installed new job systemd-stdout-syslog-bridge.socket/start as 2
 Enqueued job quotacheck.service/start as 1
 Trying to enqueue job quotaon.service/start/fail
 Installed new job quotaon.service/start as 5
 Enqueued job quotaon.service/start as 5
 Activating default unit: default.target
 Trying to enqueue job graphical.target/start/replace

This fixes a bug where displaying of boot status messages was turned off
too early.

12 years agoman: document that we support tcpwrappers only for access control
Lennart Poettering [Thu, 2 Feb 2012 05:21:31 +0000 (06:21 +0100)]
man: document that we support tcpwrappers only for access control

We do not support, and explicitly never want to support environment
variable settings and suchlike in tcpwrappers.

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

12 years agocoredump: avoid coredump loops, divert coredump if journald itself is crashing
Lennart Poettering [Thu, 2 Feb 2012 00:22:49 +0000 (01:22 +0100)]
coredump: avoid coredump loops, divert coredump if journald itself is crashing

12 years agoexec: include path name of binary we are about to execute when renaming forked off...
Lennart Poettering [Wed, 1 Feb 2012 21:33:15 +0000 (22:33 +0100)]
exec: include path name of binary we are about to execute when renaming forked off processes

Immediately after forking off a process change the comm name and argv[0]
to "(foobar)" where "foobar" is the basename of the path we are about to
execute.

This should be useful when charting boot progress.

12 years agoservice: add watchdog timestamp
Michael Olbrich [Wed, 1 Feb 2012 16:17:12 +0000 (17:17 +0100)]
service: add watchdog timestamp

This patch adds WatchdogTimestamp[Monotonic] to the systemd service
D-Bus API. The timestamp is updated to the current time when the
service calls 'sd_nofity("WATCHDOG=1\n")'.
Using a timestamp instead of an 'alive' flag has two advantages:
1. No timeout is needed to define when a service is no longer alive.
   This simplifies both configuration (no timeout value) and
   implementation (no timeout event).
2. It is more robust. A 'dead' service might not be detected should
    systemd 'forget' to reset an 'alive' flag. It is much less likely
    to get a valid new timestamp if a service died.

12 years agologind: add GetSessionByPID() bus call
Lennart Poettering [Wed, 1 Feb 2012 18:04:54 +0000 (19:04 +0100)]
logind: add GetSessionByPID() bus call

12 years agosocket: typo in dump output
Michal Schmidt [Tue, 31 Jan 2012 22:58:15 +0000 (23:58 +0100)]
socket: typo in dump output

12 years agologind: if we have to stop a session, kill at least its leader
Lennart Poettering [Tue, 31 Jan 2012 22:51:16 +0000 (23:51 +0100)]
logind: if we have to stop a session, kill at least its leader

12 years agoupdate TODO
Lennart Poettering [Tue, 31 Jan 2012 22:13:16 +0000 (23:13 +0100)]
update TODO

12 years agoload-fragment: properly parse size values denoted in bytes
Lennart Poettering [Tue, 31 Jan 2012 19:53:34 +0000 (20:53 +0100)]
load-fragment: properly parse size values denoted in bytes

12 years agojournal: increase compression threshold for objects from 64 to 512
Lennart Poettering [Tue, 31 Jan 2012 19:35:07 +0000 (20:35 +0100)]
journal: increase compression threshold for objects from 64 to 512

Apparently the perfomance price for compression is to steep to apply it
for all objects >= 64 and < 512 in size, as measured by Arjan Van De
Ven, hence increase the threshold to 512 which yields better results.

12 years agologin: lock down input devices on extra seats
Ray Strode [Tue, 31 Jan 2012 18:47:12 +0000 (13:47 -0500)]
login: lock down input devices on extra seats

We need to tell the X server to grab the keyboards
and mice associated with a hotplugged seat, so that
it doesn't have the ability to control the kernel
vt consoles.

12 years agoupdate TODO
Lennart Poettering [Tue, 31 Jan 2012 17:23:23 +0000 (18:23 +0100)]
update TODO

12 years agopkg-config: rootlibexecdir -> systemdutildir
Kay Sievers [Mon, 30 Jan 2012 15:32:18 +0000 (16:32 +0100)]
pkg-config: rootlibexecdir -> systemdutildir

Better don't export historic names for split / vs. /usr filesysystems.

12 years agomain: don't force text mode in console_setup()
Michal Schmidt [Sun, 29 Jan 2012 20:55:51 +0000 (21:55 +0100)]
main: don't force text mode in console_setup()

When systemd starts, plymouth may be already displaying progress
graphically. Do not switch the console to text mode at that time.
All other users of reset_terminal_fd() do the switch as before.

This avoids a graphical glitch with plymouth, especially visible with
vesafb, but could be also seen as a sub-second blink with radeon.

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

12 years agologind: add sys_tty_config capability, to let it use VT_ACTIVATE ioctl on "activate...
Mike Kazantsev [Fri, 27 Jan 2012 20:13:42 +0000 (21:13 +0100)]
logind: add sys_tty_config capability, to let it use VT_ACTIVATE ioctl on "activate" action

12 years agologind: make sure we create /var/lib/systemd before using it
Lennart Poettering [Fri, 27 Jan 2012 19:48:28 +0000 (20:48 +0100)]
logind: make sure we create /var/lib/systemd before using it

12 years agobuild-sys: add creation of /var/lib/systemd path, used by logind
Mike Kazantsev [Fri, 27 Jan 2012 18:56:44 +0000 (19:56 +0100)]
build-sys: add creation of /var/lib/systemd path, used by logind

12 years agopkg-config: export libexecdir, so that that gdm can use it to find the x server wrapper
Lennart Poettering [Fri, 27 Jan 2012 18:06:34 +0000 (19:06 +0100)]
pkg-config: export libexecdir, so that that gdm can use it to find the x server wrapper

12 years agosocket: if SO_RCVBUFFORCE fails, fall back to SO_RCVBUF, to have at least a little...
Lennart Poettering [Fri, 27 Jan 2012 17:58:02 +0000 (18:58 +0100)]
socket: if SO_RCVBUFFORCE fails, fall back to SO_RCVBUF, to have at least a little effect

12 years agolog: increase socket buffers for logging by default
Lennart Poettering [Fri, 27 Jan 2012 17:57:37 +0000 (18:57 +0100)]
log: increase socket buffers for logging by default

12 years agolog: never delay logging if the log server is stuck, always drop messages quickly
Lennart Poettering [Fri, 27 Jan 2012 17:14:06 +0000 (18:14 +0100)]
log: never delay logging if the log server is stuck, always drop messages quickly

12 years agomount: fix automount regression
Michal Schmidt [Thu, 26 Jan 2012 00:19:19 +0000 (01:19 +0100)]
mount: fix automount regression

Tom Gundersen noticed a regression where comment=systemd.automount in
fstab no longer prevented the adding of the After=foo.mount dependency
into local-fs.target. He bisected it to commit 9ddc4a26.

It turns out that clearing the default_dependencies flag is necessary
after all, in order to avoid complementing of Wants= with After= in the
target unit. We still want to add the dependencies on quota units and
umount.target though.

12 years agoREADME: update header line
Lennart Poettering [Wed, 25 Jan 2012 01:20:38 +0000 (02:20 +0100)]
README: update header line

12 years agobuild-sys: enable automake's check-news option v39
Lennart Poettering [Wed, 25 Jan 2012 00:12:23 +0000 (01:12 +0100)]
build-sys: enable automake's check-news option

12 years agobuild-sys: bump release
Lennart Poettering [Wed, 25 Jan 2012 00:07:31 +0000 (01:07 +0100)]
build-sys: bump release

12 years agobuild-sys: include NEWS file for v38, v39
Lennart Poettering [Wed, 25 Jan 2012 00:02:41 +0000 (01:02 +0100)]
build-sys: include NEWS file for v38, v39

12 years agovirt: detect LXC+libvirt containers
Lennart Poettering [Tue, 24 Jan 2012 23:13:05 +0000 (00:13 +0100)]
virt: detect LXC+libvirt containers

12 years agoman: document systemd-cgtop tool
Lennart Poettering [Tue, 24 Jan 2012 23:12:47 +0000 (00:12 +0100)]
man: document systemd-cgtop tool

12 years agologin: fix multi-seat check
Lennart Poettering [Tue, 24 Jan 2012 04:15:04 +0000 (05:15 +0100)]
login: fix multi-seat check

12 years agologin: extend comments in multi-seat-x
Lennart Poettering [Tue, 24 Jan 2012 03:32:09 +0000 (04:32 +0100)]
login: extend comments in multi-seat-x

12 years agologin: add multi-session X wrapper
Lennart Poettering [Mon, 23 Jan 2012 22:34:36 +0000 (23:34 +0100)]
login: add multi-session X wrapper

In preparation for https://bugzilla.gnome.org/show_bug.cgi?id=655380 we
decided it's better to include the multi-seat X wrapper in systemd,
rather than gdm. (Side effect: this makes this accessible for other
DMs)

This is a stop-gap for now, until X gins proper multi-seat graphics
support at which point this code will go away without replacement.

12 years agoupdate TODO
Lennart Poettering [Mon, 23 Jan 2012 21:03:32 +0000 (22:03 +0100)]
update TODO

12 years agoupdate TODO
Lennart Poettering [Mon, 23 Jan 2012 21:02:43 +0000 (22:02 +0100)]
update TODO

12 years agojournal: move journal TODO into main TODO
Lennart Poettering [Mon, 23 Jan 2012 21:01:29 +0000 (22:01 +0100)]
journal: move journal TODO into main TODO

12 years agoutil: use /dev/rtc symlink if possible before we go searching for a suitable device
Lennart Poettering [Mon, 23 Jan 2012 20:56:55 +0000 (21:56 +0100)]
util: use /dev/rtc symlink if possible before we go searching for a suitable device

12 years agoadd .vimrc
Kay Sievers [Mon, 23 Jan 2012 03:42:11 +0000 (04:42 +0100)]
add .vimrc

12 years agoREADME: fix git URLs
Kay Sievers [Sun, 22 Jan 2012 17:40:13 +0000 (18:40 +0100)]
README: fix git URLs

12 years agologin: move seat udev rules to login subdir
Kay Sievers [Sun, 22 Jan 2012 17:20:42 +0000 (18:20 +0100)]
login: move seat udev rules to login subdir

12 years agocgtop: add new cgtop tool
Lennart Poettering [Sun, 22 Jan 2012 17:21:15 +0000 (18:21 +0100)]
cgtop: add new cgtop tool

12 years agotmpfiles: fix bad memory access
Lennart Poettering [Sun, 22 Jan 2012 17:19:24 +0000 (18:19 +0100)]
tmpfiles: fix bad memory access

12 years agocgls: don't show kernel threads by default
Lennart Poettering [Sun, 22 Jan 2012 17:18:51 +0000 (18:18 +0100)]
cgls: don't show kernel threads by default

12 years agojournal: systemd v38 fails to build on big-endians
Dan Horák [Thu, 19 Jan 2012 11:42:53 +0000 (12:42 +0100)]
journal: systemd v38 fails to build on big-endians

Hi,

during the builds for Fedora/s390x I've found that systemd v38 fails to
build on big-endian platforms.

...
make[2]: Entering directory `/root/systemd'
  CC     src/journal/libsystemd_journal_la-sd-journal.lo
src/journal/sd-journal.c: In function 'init_location':
src/journal/sd-journal.c:69:22: error: incompatible types when
initializing type 'long unsigned int' using type 'sd_id128_t'
src/journal/sd-journal.c:69:20: error: incompatible types when assigning
to type 'sd_id128_t' from type 'long unsigned int'
make[2]: *** [src/journal/libsystemd_journal_la-sd-journal.lo] Error 1

I see the problem in using le64toh() on the 16 bytes boot_id structure
in init_location()

Please see
http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=544375 for a
full build log and attachment for a proposed fix.

With regards

Dan

12 years agosystemctl: don't show ln -s/rm output in 'install' mode if --quiet is passed
Lennart Poettering [Sat, 21 Jan 2012 02:44:11 +0000 (03:44 +0100)]
systemctl: don't show ln -s/rm output in 'install' mode if --quiet is passed

12 years agoutil: open the first RTC that has hctosys=1 set
Lennart Poettering [Sat, 21 Jan 2012 02:15:54 +0000 (03:15 +0100)]
util: open the first RTC that has hctosys=1 set

12 years agoreadahead: don't monopolize IO when replaying
Lennart Poettering [Sat, 21 Jan 2012 01:51:13 +0000 (02:51 +0100)]
readahead: don't monopolize IO when replaying

12 years agodbus: export ControlGroupPersistent field on the bus again
Lennart Poettering [Sat, 21 Jan 2012 00:47:53 +0000 (01:47 +0100)]
dbus: export ControlGroupPersistent field on the bus again

12 years agoupdate TODO
Kay Sievers [Sat, 21 Jan 2012 00:19:57 +0000 (01:19 +0100)]
update TODO

12 years agosocket: don't fail the socket on ENOTCONN
Michal Schmidt [Fri, 20 Jan 2012 22:44:22 +0000 (23:44 +0100)]
socket: don't fail the socket on ENOTCONN

Albert Strasheim reported a socket unit with Accept=yes was failing
sometimes.
getpeername() returns ENOTCONN if the connection was killed by TCP RST.
The socket unit must not fail when it happens.

Reproducer available at:
https://bugzilla.redhat.com/show_bug.cgi?id=783344

12 years agodbus-execute: don't publish control_group_persistent on DBus for now
Michal Schmidt [Fri, 20 Jan 2012 02:03:25 +0000 (03:03 +0100)]
dbus-execute: don't publish control_group_persistent on DBus for now

Since the addition of ControlGroupPersistent, systemd is trivially
killed by "systemctl status any.service".
bus_property_append_bool must not be used for a tri-state int.
Also, should it really "b", or do we want the tri-state nature to be seen?

For now just comment out the buggy DBus property.

12 years agoservice: add missing pid file unwatch in the destructor
Michal Schmidt [Thu, 19 Jan 2012 22:58:07 +0000 (23:58 +0100)]
service: add missing pid file unwatch in the destructor

The pid file watch could outlive the service unit if a daemon-reload
request came at the right time. The inotify event would then be
delivered to who knows where.

Fix it by unwatching in the service destructor.

Further changes will be needed to preserve the state of the pid file
watch across daemon-reload. For now let's just fix the crash observed
by Jóhann Guðmundsson:
Assertion 's->state == SERVICE_START || s->state == SERVICE_START_POST'
failed at src/service.c:2609, function service_fd_event().  Aborting

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=783118
12 years agolog: move #pragma around the function
Michal Schmidt [Thu, 19 Jan 2012 12:00:34 +0000 (13:00 +0100)]
log: move #pragma around the function

Koen reported errors with gcc 4.5.4 for arm:
src/log.c:624:9: error: #pragma GCC diagnostic not allowed inside
functions

12 years agopersistant -> persistent
Kay Sievers [Wed, 18 Jan 2012 20:47:30 +0000 (21:47 +0100)]
persistant -> persistent

12 years agotmpfiles: support writing short strings to files, in order to support /sys manipulati...
Lennart Poettering [Wed, 18 Jan 2012 15:39:04 +0000 (16:39 +0100)]
tmpfiles: support writing short strings to files, in order to support /sys manipulations at boot time, a la sysctl

12 years agomanager: don't place units in the 'cpu' group when run as user instance, for now
Lennart Poettering [Wed, 18 Jan 2012 14:41:21 +0000 (15:41 +0100)]
manager: don't place units in the 'cpu' group when run as user instance, for now