chiark / gitweb /
elogind.git
9 years agoshutdown: reword a few messages a little
Lennart Poettering [Thu, 28 Oct 2010 20:11:26 +0000 (22:11 +0200)]
shutdown: reword a few messages a little

9 years agomanager: show which jobs are actually installed after a transaction
Lennart Poettering [Thu, 28 Oct 2010 02:05:09 +0000 (04:05 +0200)]
manager: show which jobs are actually installed after a transaction

9 years agotimer: when deserializing timer state stay elapsed when we are elapsed
Lennart Poettering [Thu, 28 Oct 2010 02:04:50 +0000 (04:04 +0200)]
timer: when deserializing timer state stay elapsed when we are elapsed

9 years agounit: replace recursive_stop by stop_retroactively to simplify things a little
Lennart Poettering [Thu, 28 Oct 2010 01:38:52 +0000 (03:38 +0200)]
unit: replace recursive_stop by stop_retroactively to simplify things a little

9 years agoservice: unify tstamp serialization code
Lennart Poettering [Thu, 28 Oct 2010 01:16:03 +0000 (03:16 +0200)]
service: unify tstamp serialization code

9 years agodevice: set recursive_stop=true by default
Lennart Poettering [Thu, 28 Oct 2010 01:15:44 +0000 (03:15 +0200)]
device: set recursive_stop=true by default

9 years agounit: suppress incorrect deserialization errors
Lennart Poettering [Thu, 28 Oct 2010 00:19:21 +0000 (02:19 +0200)]
unit: suppress incorrect deserialization errors

9 years agoswap: there's no reason not order swap after sysinit, so drop it
Lennart Poettering [Wed, 27 Oct 2010 23:30:13 +0000 (01:30 +0200)]
swap: there's no reason not order swap after sysinit, so drop it

9 years agosocket: fix IPv6 availability detection
Andrey Borzenkov [Wed, 27 Oct 2010 17:40:31 +0000 (21:40 +0400)]
socket: fix IPv6 availability detection

If IPv6 is loaded with disable=1, any IPv6 functionality is completely
disabled until the ipv6 module is reloaded. Do not assume IPv6 is available just
because the module is present. Fixes startup error:

Oct 27 20:58:02 cooker kernel: IPv6: Loaded, but administratively disabled, reboot required to enable
Oct 27 20:58:02 cooker kernel: systemd[1]: Set hostname to <cooker>.
Oct 27 20:58:02 cooker kernel: systemd[1]: Netlink failure for request 2: Operation not supported
Oct 27 20:58:02 cooker kernel: systemd[1]: Failed to configure loopback device: Operation not supported

9 years agoupdate fixme
Lennart Poettering [Wed, 27 Oct 2010 22:33:15 +0000 (00:33 +0200)]
update fixme

9 years agoTODO: /proc/swaps is poll()able now
Kay Sievers [Wed, 27 Oct 2010 09:37:22 +0000 (11:37 +0200)]
TODO: /proc/swaps is poll()able now

  http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=66d7dd518ae413a383ab2c6c263cc30617329842

9 years agomounts: automatically create /dev/stderr and friends early on boot so that they are...
Lennart Poettering [Wed, 27 Oct 2010 03:47:48 +0000 (05:47 +0200)]
mounts: automatically create /dev/stderr and friends early on boot so that they are around when we run shell scripts before udevd

9 years agoselinux: automatically load policy if the initrd hasn't done this for us yet
Lennart Poettering [Wed, 27 Oct 2010 03:47:02 +0000 (05:47 +0200)]
selinux: automatically load policy if the initrd hasn't done this for us yet

9 years agomain: move make_null_stdio() to util.c
Lennart Poettering [Wed, 27 Oct 2010 03:45:57 +0000 (05:45 +0200)]
main: move make_null_stdio() to util.c

9 years agounits: run sysv related scripts with TERM=linux
Lennart Poettering [Wed, 27 Oct 2010 03:45:09 +0000 (05:45 +0200)]
units: run sysv related scripts with TERM=linux

9 years agoservice: when after startup only one process is in a service's cgroup, assume it...
Lennart Poettering [Wed, 27 Oct 2010 01:16:49 +0000 (03:16 +0200)]
service: when after startup only one process is in a service's cgroup, assume it is the main process

9 years agounit: serialize active timestamps
Lennart Poettering [Tue, 26 Oct 2010 22:01:12 +0000 (00:01 +0200)]
unit: serialize active timestamps

9 years agoman: be more explicit about the usefulness of --system
Lennart Poettering [Tue, 26 Oct 2010 21:22:55 +0000 (23:22 +0200)]
man: be more explicit about the usefulness of --system

9 years agoupdate fixme
Lennart Poettering [Tue, 26 Oct 2010 21:17:50 +0000 (23:17 +0200)]
update fixme

9 years agobuild-sys: fix 'make fedora'
Lennart Poettering [Tue, 26 Oct 2010 21:15:07 +0000 (23:15 +0200)]
build-sys: fix 'make fedora'

9 years agoswap: add only swaps listed in /etc/fstab automatically to swap.target, others should...
Lennart Poettering [Tue, 26 Oct 2010 20:58:54 +0000 (22:58 +0200)]
swap: add only swaps listed in /etc/fstab automatically to swap.target, others should be added via .wants/ links

9 years agoerrors: refer to systemctl status when useful
Lennart Poettering [Tue, 26 Oct 2010 20:40:02 +0000 (22:40 +0200)]
errors: refer to systemctl status when useful

9 years agoswap: add default cgroup to swap exec env
Lennart Poettering [Tue, 26 Oct 2010 20:06:11 +0000 (22:06 +0200)]
swap: add default cgroup to swap exec env

9 years agoswap: expose swap exec env proprties via dbus
Lennart Poettering [Tue, 26 Oct 2010 20:05:52 +0000 (22:05 +0200)]
swap: expose swap exec env proprties via dbus

9 years agoreadahead: bump a device's request_nr when enabling readahead
Lennart Poettering [Tue, 26 Oct 2010 19:28:39 +0000 (21:28 +0200)]
readahead: bump a device's request_nr when enabling readahead

9 years agoshutdown: properly handle sigtimedwait() timing out
Lennart Poettering [Tue, 26 Oct 2010 18:51:15 +0000 (20:51 +0200)]
shutdown: properly handle sigtimedwait() timing out

9 years agoexec: fix dbus exposure of UtmpIdentifier field
Lennart Poettering [Tue, 26 Oct 2010 18:45:43 +0000 (20:45 +0200)]
exec: fix dbus exposure of UtmpIdentifier field

9 years agomain: fix typo in kernel cmdline parameters help
Andrey Borzenkov [Tue, 26 Oct 2010 18:04:38 +0000 (22:04 +0400)]
main: fix typo in kernel cmdline parameters help

9 years agoservice: fix sysv-less build
Mike Kazantsev [Tue, 26 Oct 2010 13:18:13 +0000 (15:18 +0200)]
service: fix sysv-less build

9 years agoask-password-tty: properly handle SIGINT/SIGTERM
Lennart Poettering [Tue, 26 Oct 2010 13:15:00 +0000 (15:15 +0200)]
ask-password-tty: properly handle SIGINT/SIGTERM

9 years agosystemctl: automatically spawn temporary password agent when we might need one
Lennart Poettering [Tue, 26 Oct 2010 03:29:39 +0000 (05:29 +0200)]
systemctl: automatically spawn temporary password agent when we might need one

9 years agoask-password: properly handle multiple pending passwords when writing wall msg
Lennart Poettering [Tue, 26 Oct 2010 02:45:27 +0000 (04:45 +0200)]
ask-password: properly handle multiple pending passwords when writing wall msg

9 years agoask-password: enable plymouth agent by default
Lennart Poettering [Tue, 26 Oct 2010 02:40:32 +0000 (04:40 +0200)]
ask-password: enable plymouth agent by default

9 years agoask-password: add minimal plymouth password agent
Lennart Poettering [Tue, 26 Oct 2010 02:35:25 +0000 (04:35 +0200)]
ask-password: add minimal plymouth password agent

9 years agounits: now that we don't set TERM anymore by default, make sure to pass it to our...
Lennart Poettering [Tue, 26 Oct 2010 00:58:59 +0000 (02:58 +0200)]
units: now that we don't set TERM anymore by default, make sure to pass it to our rescue sessions

9 years agoservice: make sure to pass TERM=linux to all sysv scripts
Lennart Poettering [Tue, 26 Oct 2010 00:32:42 +0000 (02:32 +0200)]
service: make sure to pass TERM=linux to all sysv scripts

9 years agomain: don't unset HOME/TERM when run in session mode
Lennart Poettering [Tue, 26 Oct 2010 00:32:02 +0000 (02:32 +0200)]
main: don't unset HOME/TERM when run in session mode

9 years agoupdate fixme
Lennart Poettering [Mon, 25 Oct 2010 22:01:52 +0000 (00:01 +0200)]
update fixme

9 years agounits: Remove the distro specific references to killall.service.
Franz Dietrich [Wed, 20 Oct 2010 11:11:27 +0000 (13:11 +0200)]
units: Remove the distro specific references to killall.service.

Maybe debian and fedora still have the killall.service but usually it shouldn't be necessary anymore.

9 years agounits: Since killall.service does not exist anymore remove all references.
Franz Dietrich [Mon, 25 Oct 2010 21:54:36 +0000 (23:54 +0200)]
units: Since killall.service does not exist anymore remove all references.

This commit deletes all references to killall.service for the default
services.  The distribution specific services will be modified in a
separate commit.

9 years agoupdate fixme
Lennart Poettering [Mon, 25 Oct 2010 21:51:49 +0000 (23:51 +0200)]
update fixme

9 years agomount: add nosuid,nodev,noexec switches to /var/lock and /var/run
Lennart Poettering [Mon, 25 Oct 2010 21:28:42 +0000 (23:28 +0200)]
mount: add nosuid,nodev,noexec switches to /var/lock and /var/run

9 years agotmpfiles: Don't clean /var/lock/subsys; it is not aged content
Bill Nottingham [Mon, 25 Oct 2010 21:25:51 +0000 (23:25 +0200)]
tmpfiles: Don't clean /var/lock/subsys; it is not aged content

It will get 'cleaned' on boot due to being tmpfs anyway.

9 years agotmpfiles: Make wtmp match utmp perms, and add btmp.
Bill Nottingham [Fri, 22 Oct 2010 02:37:17 +0000 (22:37 -0400)]
tmpfiles: Make wtmp match utmp perms, and add btmp.

9 years agoarch: remove obsolete sysinit.service
Tom Gundersen [Wed, 20 Oct 2010 14:21:48 +0000 (16:21 +0200)]
arch: remove obsolete sysinit.service

This is now split into smaller units and shipped with the downstream package.

9 years agofsck: remove symlink from fsck.target to sysinit.target
Tom Gundersen [Mon, 25 Oct 2010 20:02:52 +0000 (22:02 +0200)]
fsck: remove symlink from fsck.target to sysinit.target

9 years agoumount: Make sure / is remounted ro on shutdown
Michael Biebl [Sun, 24 Oct 2010 16:40:44 +0000 (18:40 +0200)]
umount: Make sure / is remounted ro on shutdown

Increment n_failed in mount_points_list_umount() if we skip /.
Otherwise it can happen that mount_points_list_remount_read_only() is
not called in umount_all().

9 years agoutil: Add welcome message for Ubuntu
Andrew Edmunds [Mon, 25 Oct 2010 13:23:21 +0000 (23:23 +1000)]
util: Add welcome message for Ubuntu

The approved method for determining the installed release of
Ubuntu is to execute "lsb_release".  However, this is in /usr/bin and
is implemented in python so it is not safe to execute at this early
stage of booting.  This code parses /etc/lsb-release which is
where "lsb_release" looks for the information.

9 years agoubuntu: Treat Ubuntu as a distinct distro in configure.ac etc
Andrew Edmunds [Mon, 25 Oct 2010 13:22:28 +0000 (23:22 +1000)]
ubuntu: Treat Ubuntu as a distinct distro in configure.ac etc

Previously Ubuntu was treated as being equivalent to Debian, but the two
distributions require different behaviour in certain places.  This commit does
not change the behaviour of systemd on either distro but it creates a
framework for changes to be introduced by later commits.

The following previously meant "Target is Debian or Ubuntu".
    * configure option "--with-distro=debian"
    * C preprocessor symbol "TARGET_DEBIAN"
    * Automake conditional "TARGET_DEBIAN"
After this commit, all of the above are redefined to mean "Target is Debian"

The following are introduced to mean "Target is Ubuntu".
    * configure option "--with-distro=ubuntu"
    * C preprocessor symbol "TARGET_UBUNTU"
    * Automake conditional "TARGET_UBUNTU"

Most code written for Debian will also be applicable to Ubuntu. An extra
Automake conditional "TARGET_DEBIAN_OR_UBUNTU" is introduced to avoid
duplication of code that would otherwise occur.

This commit updates configure.ac, Makefile.am and distro-specific source files
in line with the above definitions.

9 years agosystemd: unset HOME and TERM set from the kernel
Lennart Poettering [Mon, 25 Oct 2010 19:05:04 +0000 (21:05 +0200)]
systemd: unset HOME and TERM set from the kernel

9 years agounits: activate wall agent automatically if something is dropped in /dev/.systemd...
Lennart Poettering [Mon, 25 Oct 2010 19:02:01 +0000 (21:02 +0200)]
units: activate wall agent automatically if something is dropped in /dev/.systemd/ask-password

9 years agoupdate fixme
Lennart Poettering [Mon, 25 Oct 2010 18:43:34 +0000 (20:43 +0200)]
update fixme

9 years agoask-password: add basic tty agent
Lennart Poettering [Mon, 25 Oct 2010 18:35:17 +0000 (20:35 +0200)]
ask-password: add basic tty agent

9 years agoTODO: add getty on-demand, man: --system
Kay Sievers [Mon, 25 Oct 2010 16:02:11 +0000 (18:02 +0200)]
TODO: add getty on-demand, man: --system

9 years agoask-password: rename ask-password-agent to gnome-ask-password-agent
Lennart Poettering [Fri, 22 Oct 2010 14:38:14 +0000 (16:38 +0200)]
ask-password: rename ask-password-agent to gnome-ask-password-agent

9 years agoupdate fixme
Lennart Poettering [Fri, 22 Oct 2010 14:34:10 +0000 (16:34 +0200)]
update fixme

9 years agoman: numerous updates to document updated systemctl behaviour
Lennart Poettering [Fri, 22 Oct 2010 14:32:29 +0000 (16:32 +0200)]
man: numerous updates to document updated systemctl behaviour

9 years agofsck: suppress error message if we cannot change into single user mode since we are...
Lennart Poettering [Fri, 22 Oct 2010 14:12:56 +0000 (16:12 +0200)]
fsck: suppress error message if we cannot change into single user mode since we are already passt early bootup

9 years agodbus: epose FsckPassNo property for service objects
Lennart Poettering [Fri, 22 Oct 2010 14:12:26 +0000 (16:12 +0200)]
dbus: epose FsckPassNo property for service objects

9 years agoman: document systemctl --force
Lennart Poettering [Fri, 22 Oct 2010 14:12:05 +0000 (16:12 +0200)]
man: document systemctl --force

9 years agosystemctl: introduce systemctl kill
Lennart Poettering [Fri, 22 Oct 2010 14:11:50 +0000 (16:11 +0200)]
systemctl: introduce systemctl kill

9 years agounit-name: Fix unescaping
Tom Gundersen [Sat, 16 Oct 2010 22:11:23 +0000 (00:11 +0200)]
unit-name: Fix unescaping

Invalid characters in unit names are escaped as \xFF. However, when
unescaping we were looking for \FF.

9 years agotmpfiles: consider TRUNCATE_DIRECTORY as well.
Gustavo Sverzut Barbieri [Wed, 20 Oct 2010 01:06:34 +0000 (23:06 -0200)]
tmpfiles: consider TRUNCATE_DIRECTORY as well.

reorder lines to match the enum declaration.

9 years agounits: order syslog.target after syslog.socket
Lennart Poettering [Wed, 20 Oct 2010 16:02:22 +0000 (18:02 +0200)]
units: order syslog.target after syslog.socket

9 years agofsck: drop -C from fsck cmdline to avoid EPIPE
Kay Sievers [Thu, 21 Oct 2010 10:22:30 +0000 (12:22 +0200)]
fsck: drop -C from fsck cmdline to avoid EPIPE

9 years agosyslog: enable kmsg bridge by default and enable syslogging for early boot services
Lennart Poettering [Wed, 20 Oct 2010 15:48:01 +0000 (17:48 +0200)]
syslog: enable kmsg bridge by default and enable syslogging for early boot services

9 years agoquota: fix quotaon command line
Lennart Poettering [Wed, 20 Oct 2010 14:43:55 +0000 (16:43 +0200)]
quota: fix quotaon command line

9 years agounit: introduce %f specifier to decode file names
Lennart Poettering [Wed, 20 Oct 2010 14:16:45 +0000 (16:16 +0200)]
unit: introduce %f specifier to decode file names

9 years agoinstall: enable quota/fsck-root/hwclock load by default
Lennart Poettering [Wed, 20 Oct 2010 14:16:14 +0000 (16:16 +0200)]
install: enable quota/fsck-root/hwclock load by default

9 years agoquota: enable quotaon/quotacheck in local-fs.target, not basic.target
Lennart Poettering [Wed, 20 Oct 2010 14:15:33 +0000 (16:15 +0200)]
quota: enable quotaon/quotacheck in local-fs.target, not basic.target

9 years agoquota: add install hooks for basic.target
Lennart Poettering [Wed, 20 Oct 2010 13:22:20 +0000 (15:22 +0200)]
quota: add install hooks for basic.target

9 years agofsck: wait for device to show up
Lennart Poettering [Wed, 20 Oct 2010 13:22:04 +0000 (15:22 +0200)]
fsck: wait for device to show up

9 years agomount: pull in quotacheck.service, not quotacheck.target
Lennart Poettering [Wed, 20 Oct 2010 13:21:44 +0000 (15:21 +0200)]
mount: pull in quotacheck.service, not quotacheck.target

9 years agomount: require fsck
Lennart Poettering [Wed, 20 Oct 2010 13:21:05 +0000 (15:21 +0200)]
mount: require fsck

9 years agomanager: properly parse finish timestamp
Lennart Poettering [Wed, 20 Oct 2010 12:41:07 +0000 (14:41 +0200)]
manager: properly parse finish timestamp

9 years agomanager: properly write header marker on serialization
Lennart Poettering [Wed, 20 Oct 2010 12:40:44 +0000 (14:40 +0200)]
manager: properly write header marker on serialization

9 years agomount: do not implicitly pull in fsck service for root dir
Lennart Poettering [Wed, 20 Oct 2010 12:26:46 +0000 (14:26 +0200)]
mount: do not implicitly pull in fsck service for root dir

9 years agounits: properly use ConditionPathExists= instead of ConditionFileExists=
Lennart Poettering [Wed, 20 Oct 2010 12:22:49 +0000 (14:22 +0200)]
units: properly use ConditionPathExists= instead of ConditionFileExists=

9 years agoservice: implement FsckPassNo= option
Lennart Poettering [Wed, 20 Oct 2010 12:22:23 +0000 (14:22 +0200)]
service: implement FsckPassNo= option

9 years agolog: reopen console so that we have logging on shutdown
Lennart Poettering [Tue, 19 Oct 2010 22:56:26 +0000 (00:56 +0200)]
log: reopen console so that we have logging on shutdown

9 years agofsck: don't be idempotent for root directories
Lennart Poettering [Tue, 19 Oct 2010 22:44:09 +0000 (00:44 +0200)]
fsck: don't be idempotent for root directories

9 years agounits: add missing fsck units
Lennart Poettering [Tue, 19 Oct 2010 22:13:23 +0000 (00:13 +0200)]
units: add missing fsck units

9 years agofsck: make fsck idempotent
Lennart Poettering [Tue, 19 Oct 2010 21:47:12 +0000 (23:47 +0200)]
fsck: make fsck idempotent

9 years agofsck: properly hook in fsck everywhere, add special support for fsck'ing root dir
Lennart Poettering [Tue, 19 Oct 2010 21:45:18 +0000 (23:45 +0200)]
fsck: properly hook in fsck everywhere, add special support for fsck'ing root dir

9 years agofsck: atomically replace base.target by rescue.target/reboot.target when fsck fails
Lennart Poettering [Tue, 19 Oct 2010 19:53:19 +0000 (21:53 +0200)]
fsck: atomically replace base.target by rescue.target/reboot.target when fsck fails

9 years agofsck: be verbose when skipping fsck due to missing AC
Lennart Poettering [Tue, 19 Oct 2010 19:22:47 +0000 (21:22 +0200)]
fsck: be verbose when skipping fsck due to missing AC

9 years agofsck: add initial version of fsck and quotacheck wrappers
Lennart Poettering [Tue, 19 Oct 2010 19:19:12 +0000 (21:19 +0200)]
fsck: add initial version of fsck and quotacheck wrappers

9 years agosystemctl: fix counting in list-units output
Lennart Poettering [Tue, 19 Oct 2010 17:43:44 +0000 (19:43 +0200)]
systemctl: fix counting in list-units output

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

9 years agoman: extend commenting of .spec file snippets a bit
Lennart Poettering [Tue, 19 Oct 2010 17:39:02 +0000 (19:39 +0200)]
man: extend commenting of .spec file snippets a bit

9 years agoman: properly refer to $MAINPID instead of $(MAINPID) which doesnt work anymore
Lennart Poettering [Tue, 19 Oct 2010 17:37:38 +0000 (19:37 +0200)]
man: properly refer to $MAINPID instead of $(MAINPID) which doesnt work anymore

9 years agotmpfiles: destruct selinux database after use
Lennart Poettering [Tue, 19 Oct 2010 17:36:45 +0000 (19:36 +0200)]
tmpfiles: destruct selinux database after use

9 years agolabel: don't fail miserably if filesystem doesn't do xattrs/labels
Lennart Poettering [Tue, 19 Oct 2010 17:35:35 +0000 (19:35 +0200)]
label: don't fail miserably if filesystem doesn't do xattrs/labels

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

9 years agotmpfiles: remove forcefsck/fastboot flag files after boot
Lennart Poettering [Tue, 19 Oct 2010 17:35:04 +0000 (19:35 +0200)]
tmpfiles: remove forcefsck/fastboot flag files after boot

9 years agoswap: listen for POLLPRI events on /proc/swaps if available
Lennart Poettering [Mon, 18 Oct 2010 21:09:09 +0000 (23:09 +0200)]
swap: listen for POLLPRI events on /proc/swaps if available

9 years agolabel: if the selinux policy knows no label, then silently don't do anything
Lennart Poettering [Mon, 18 Oct 2010 20:47:57 +0000 (22:47 +0200)]
label: if the selinux policy knows no label, then silently don't do anything

9 years agoutil: ignore quota files by default
Lennart Poettering [Mon, 18 Oct 2010 20:39:17 +0000 (22:39 +0200)]
util: ignore quota files by default

9 years agomanager: serialize/deserialize finish timestamp
Lennart Poettering [Mon, 18 Oct 2010 20:39:06 +0000 (22:39 +0200)]
manager: serialize/deserialize finish timestamp

9 years agotmpfiles: integrate kay's directory cleanup code and otherwise beef up tmpfiles quite...
Lennart Poettering [Mon, 18 Oct 2010 20:38:41 +0000 (22:38 +0200)]
tmpfiles: integrate kay's directory cleanup code and otherwise beef up tmpfiles quite a bit

9 years agoshutdown: loop only as long as we manage to unmount/detach devices, give up immediate...
Lennart Poettering [Thu, 14 Oct 2010 16:55:04 +0000 (18:55 +0200)]
shutdown: loop only as long as we manage to unmount/detach devices, give up immediately when we are stuck

9 years agoupdate fixme
Lennart Poettering [Thu, 14 Oct 2010 16:17:42 +0000 (18:17 +0200)]
update fixme