chiark / gitweb /
elogind.git
13 years agoservice: shortcut sysv provides on ourselves
Lennart Poettering [Mon, 27 Sep 2010 22:29:09 +0000 (00:29 +0200)]
service: shortcut sysv provides on ourselves

13 years agoservice: ignore sysv $null service
Lennart Poettering [Mon, 27 Sep 2010 22:28:16 +0000 (00:28 +0200)]
service: ignore sysv $null service

13 years agofix spelling of 'unneeded' at various places
Lennart Poettering [Mon, 27 Sep 2010 21:27:21 +0000 (23:27 +0200)]
fix spelling of 'unneeded' at various places

13 years agoupdate fixme
Lennart Poettering [Mon, 27 Sep 2010 21:24:40 +0000 (23:24 +0200)]
update fixme

13 years agoservice: don't create sysv order deps on merged units
Lennart Poettering [Mon, 27 Sep 2010 21:24:17 +0000 (23:24 +0200)]
service: don't create sysv order deps on merged units

13 years agoload-fragment: reset fragment_path if we couldn't find a unit file for it
Lennart Poettering [Mon, 27 Sep 2010 18:31:23 +0000 (20:31 +0200)]
load-fragment: reset fragment_path if we couldn't find a unit file for it

13 years agoreadahead: avoid collisions with the NULL pointer
Lennart Poettering [Mon, 27 Sep 2010 18:23:17 +0000 (20:23 +0200)]
readahead: avoid collisions with the NULL pointer

13 years agoRevert "hashmap: HASHMAP_FOREACH* iterate until ITERATOR_LAST"
Lennart Poettering [Mon, 27 Sep 2010 18:13:21 +0000 (20:13 +0200)]
Revert "hashmap: HASHMAP_FOREACH* iterate until ITERATOR_LAST"

This reverts commit 66d9b3b59551a33398b2201662af5c8c17a367c9.

If we check for i == ITERATOR_LAST we exit the loop one entry before the
end. Instead we should return if e is NULL.

13 years agoupdate fixme
Lennart Poettering [Mon, 27 Sep 2010 18:10:11 +0000 (20:10 +0200)]
update fixme

13 years agoupdate fixme
Lennart Poettering [Mon, 27 Sep 2010 16:48:47 +0000 (18:48 +0200)]
update fixme

13 years agoNeed to use #elif defined(DEBIAN) here...
Michael Biebl [Mon, 27 Sep 2010 17:10:11 +0000 (19:10 +0200)]
Need to use #elif defined(DEBIAN) here...

This fixes a c&p error in 7472744bf9eddc7137f03233e49fa780793d5fc0

13 years agodebian: add locale compat support
Michael Biebl [Mon, 27 Sep 2010 16:40:51 +0000 (18:40 +0200)]
debian: add locale compat support

Read LANG from /etc/default/locale.

13 years agoreadahead: properly initialize variable
Lennart Poettering [Mon, 27 Sep 2010 01:24:39 +0000 (03:24 +0200)]
readahead: properly initialize variable

13 years agoupdate fixme
Lennart Poettering [Mon, 27 Sep 2010 01:18:35 +0000 (03:18 +0200)]
update fixme

13 years agosysv: optionally disable of SysV init/rcN.d support at compile time
Fabiano Fidencio [Tue, 21 Sep 2010 03:23:12 +0000 (00:23 -0300)]
sysv: optionally disable of SysV init/rcN.d support at compile time

This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to
isolate code dealing with /etc/init.d and /etc/rcN.d for systems where
it does not make sense (one that does not use sysv or one that is fully
systemd native).

The patch tries to be as little intrusive as possible, however in
order to minimize the number of #ifdef'ed regions I've reordered some
code in path-lookup.c:lookup_paths_init() where all code dealing with
sysv is now isolated under running_as == MANAGER_SYSTEM as well.

Moreover, In struct Service, some fields were rearranged to reduce
the number of ifdefs.

Lennart's suggestions were fixed and squashed with the original patch,
that was sent by Gustavo Sverzut Barbieri (barbieri@profusion.mobi).

13 years agohashmap: HASHMAP_FOREACH* iterate until ITERATOR_LAST
Harald Hoyer [Fri, 24 Sep 2010 10:06:01 +0000 (12:06 +0200)]
hashmap: HASHMAP_FOREACH* iterate until ITERATOR_LAST

13 years agojob: show failure message only for start jobs
Lennart Poettering [Sun, 26 Sep 2010 23:37:22 +0000 (01:37 +0200)]
job: show failure message only for start jobs

13 years agomount: Remove double include of "mount.h"
Fabiano Fidencio [Sun, 26 Sep 2010 19:55:27 +0000 (16:55 -0300)]
mount: Remove double include of "mount.h"

13 years agoupdate fixme
Lennart Poettering [Sun, 26 Sep 2010 23:24:35 +0000 (01:24 +0200)]
update fixme

13 years agoreadahead-replay: use posix_fadvise instead of readahead
Harald Hoyer [Fri, 24 Sep 2010 10:54:05 +0000 (12:54 +0200)]
readahead-replay: use posix_fadvise instead of readahead

13 years agoreadahead-collect: check for negative return codes of fs_on_ssd()
Harald Hoyer [Fri, 24 Sep 2010 10:06:02 +0000 (12:06 +0200)]
readahead-collect: check for negative return codes of fs_on_ssd()

13 years agoreadahead: add interface to sd-daemon.[ch] to control readahead
Lennart Poettering [Sun, 26 Sep 2010 13:50:14 +0000 (15:50 +0200)]
readahead: add interface to sd-daemon.[ch] to control readahead

13 years agoreadahead-collect: typo, free the correct pointer
Harald Hoyer [Fri, 24 Sep 2010 10:06:04 +0000 (12:06 +0200)]
readahead-collect: typo, free the correct pointer

13 years agoreadahead: parse command line arguments
Lennart Poettering [Sat, 25 Sep 2010 13:39:38 +0000 (15:39 +0200)]
readahead: parse command line arguments

13 years agoreadahead: never readahead temporary files since their names tend not to be stable
Lennart Poettering [Sat, 25 Sep 2010 12:35:53 +0000 (14:35 +0200)]
readahead: never readahead temporary files since their names tend not to be stable

13 years agoreadahead: make candidate for early OOM kill
Lennart Poettering [Sat, 25 Sep 2010 12:35:34 +0000 (14:35 +0200)]
readahead: make candidate for early OOM kill

13 years agoreadahead: exit after a maximum runtime
Lennart Poettering [Sat, 25 Sep 2010 12:27:16 +0000 (14:27 +0200)]
readahead: exit after a maximum runtime

13 years agoreadahead-replay: delay ready notification until we queued first read
Lennart Poettering [Sat, 25 Sep 2010 11:47:31 +0000 (13:47 +0200)]
readahead-replay: delay ready notification until we queued first read

13 years agoreadahead: disable on low memory machines
Lennart Poettering [Sat, 25 Sep 2010 11:32:54 +0000 (13:32 +0200)]
readahead: disable on low memory machines

13 years agoreadahead: take file system root on command line
Lennart Poettering [Fri, 24 Sep 2010 09:12:10 +0000 (11:12 +0200)]
readahead: take file system root on command line

13 years agoreadahead: normalize logging
Lennart Poettering [Thu, 23 Sep 2010 15:44:33 +0000 (17:44 +0200)]
readahead: normalize logging

13 years agoreadahead: put limit on files we read ahead
Lennart Poettering [Thu, 23 Sep 2010 15:35:16 +0000 (17:35 +0200)]
readahead: put limit on files we read ahead

13 years agoreadahead: add btrfs defrag support
Lennart Poettering [Thu, 23 Sep 2010 15:11:19 +0000 (17:11 +0200)]
readahead: add btrfs defrag support

13 years agofanotify: use uint64_t instead of __u64
Lennart Poettering [Thu, 23 Sep 2010 13:49:08 +0000 (15:49 +0200)]
fanotify: use uint64_t instead of __u64

13 years agodbus: export number of total failed jobs on D-Bus interface
Lennart Poettering [Thu, 23 Sep 2010 13:38:42 +0000 (15:38 +0200)]
dbus: export number of total failed jobs on D-Bus interface

13 years agoreadahead: implement minimal readahead logic based on fanotify(), mincore() and reada...
Lennart Poettering [Thu, 23 Sep 2010 13:01:41 +0000 (15:01 +0200)]
readahead: implement minimal readahead logic based on fanotify(), mincore() and readahead()

13 years agoupdate fixme
Kay Sievers [Wed, 22 Sep 2010 16:26:20 +0000 (18:26 +0200)]
update fixme

13 years agounits: add tmp.service to file list
Kay Sievers [Wed, 22 Sep 2010 11:51:05 +0000 (13:51 +0200)]
units: add tmp.service to file list

13 years agounits: enable getty.target by default
Kay Sievers [Wed, 22 Sep 2010 11:31:53 +0000 (13:31 +0200)]
units: enable getty.target by default

13 years agounits: add optional tmp.service
Kay Sievers [Wed, 22 Sep 2010 11:01:15 +0000 (13:01 +0200)]
units: add optional tmp.service

13 years agounits: move ctrl-alt-delete, default getty targets from /etc to /lib
Kay Sievers [Wed, 22 Sep 2010 10:49:17 +0000 (12:49 +0200)]
units: move ctrl-alt-delete, default getty targets from /etc to /lib

13 years agounits: hwclock support for non-UTC must not be in the default
Kay Sievers [Wed, 22 Sep 2010 10:00:07 +0000 (12:00 +0200)]
units: hwclock support for non-UTC must not be in the default

13 years agounits: enable var-run + var-lock service by default
Kay Sievers [Tue, 21 Sep 2010 19:43:40 +0000 (21:43 +0200)]
units: enable var-run + var-lock service by default

13 years agounits: enable sysctl by default
Kay Sievers [Tue, 21 Sep 2010 19:38:21 +0000 (21:38 +0200)]
units: enable sysctl by default

13 years agounits: enable hwclock by default
Kay Sievers [Tue, 21 Sep 2010 19:33:24 +0000 (21:33 +0200)]
units: enable hwclock by default

13 years agounits: always enable random-seed, module-load, vconsole
Kay Sievers [Tue, 21 Sep 2010 19:25:44 +0000 (21:25 +0200)]
units: always enable random-seed, module-load, vconsole

13 years agodbus: add Progress property to introspection
Gustavo Sverzut Barbieri [Tue, 21 Sep 2010 14:55:35 +0000 (16:55 +0200)]
dbus: add Progress property to introspection

13 years agotmpwatch: fix typo and remove [Install]
Kay Sievers [Tue, 21 Sep 2010 14:22:10 +0000 (16:22 +0200)]
tmpwatch: fix typo and remove [Install]

13 years agosuse: locale + vconsole compat support
Kay Sievers [Tue, 21 Sep 2010 13:08:04 +0000 (15:08 +0200)]
suse: locale + vconsole compat support

13 years agotmpwatch: install the unit files
Kay Sievers [Tue, 21 Sep 2010 13:07:43 +0000 (15:07 +0200)]
tmpwatch: install the unit files

13 years agomanager: calculate progress value while booting
Lennart Poettering [Tue, 21 Sep 2010 02:25:48 +0000 (04:25 +0200)]
manager: calculate progress value while booting

13 years agomanager: measure startup times
Lennart Poettering [Tue, 21 Sep 2010 02:14:38 +0000 (04:14 +0200)]
manager: measure startup times

13 years agomanager: count how many jobs we executed
Lennart Poettering [Tue, 21 Sep 2010 01:51:31 +0000 (03:51 +0200)]
manager: count how many jobs we executed

13 years agounits: add default tmpwatch units
Lennart Poettering [Tue, 21 Sep 2010 01:38:32 +0000 (03:38 +0200)]
units: add default tmpwatch units

13 years agovconsole: make sure we don't merge configuration settings from different sources
Lennart Poettering [Tue, 21 Sep 2010 01:16:28 +0000 (03:16 +0200)]
vconsole: make sure we don't merge configuration settings from different sources

13 years agolocale: make sure we don't merge configuration settings from different sources
Lennart Poettering [Mon, 20 Sep 2010 23:51:23 +0000 (01:51 +0200)]
locale: make sure we don't merge configuration settings from different sources

13 years agolocale: unset locale vars that are not set any longer
Lennart Poettering [Mon, 20 Sep 2010 23:40:34 +0000 (01:40 +0200)]
locale: unset locale vars that are not set any longer

13 years agolocale: never use LC_ALL. It's evil.
Lennart Poettering [Mon, 20 Sep 2010 23:37:42 +0000 (01:37 +0200)]
locale: never use LC_ALL. It's evil.

13 years agoservice: start Arch daemons
Tom Gundersen [Sat, 18 Sep 2010 22:45:00 +0000 (23:45 +0100)]
service: start Arch daemons

Arch does not use proper SysV runlevels. Instead /etc/rc.conf contains
an array of daemons to load in a multi-user runlevel, and some
dependencies between them.

This patch enables this behaviour in SystemD (only when compiled with
Arch support), which allows SystemD to be a drop in replacement on Arch
(modulo some minor bugs).

v2: simplified after suggestion from Lennart

13 years agosocket: Support IPv6-less systems with runtime check.
Fabiano Fidencio [Mon, 20 Sep 2010 19:33:14 +0000 (16:33 -0300)]
socket: Support IPv6-less systems with runtime check.

This patch introduces socket_ipv6_is_supported() call that checks for
IPv6 availability. Code then check for it before using specific calls.

In order to be less intrusive, this patch avoids IPv6 entries being
parsed at all, this way we don't get such entries in the system and
all other code paths are automatically ignored. However an extra check
is done at socket_address_listen() to make sure of that.

As the number of Netlink messages is not know upfront anymore,
loopback-setup.c was refactored to dynamically calculate the sequence
number and count.

Lennart's suggestions were fixed and squashed with the original patch,
that was sent by Gustavo Sverzut Barbieri (barbieri@profusion.mobi).

13 years agogentoo: locale-setup support
Gustavo Sverzut Barbieri [Mon, 20 Sep 2010 22:49:13 +0000 (00:49 +0200)]
gentoo: locale-setup support

Use locale variables from /etc/profile.env as Gentoo's openrc
runscript does (tool that is used by /etc/init.d/* services).

13 years agogentoo: vconsole-setup support.
Gustavo Sverzut Barbieri [Mon, 20 Sep 2010 22:07:09 +0000 (19:07 -0300)]
gentoo: vconsole-setup support.

This patch is a bit bigger than expected since Gentoo being
non-standard in some places.

 1. it is installing binaries at /usr/bin instead of /bin.

 2. it is using CamelCase names for consolefonts.

 3. /etc/rc.conf:unicode=(yes|no) just forbids loadkeys and setfont
    "-u" options, but do not disable the actual kernel default_utf8
    from vt module.

13 years agoask-password. Initializing socket_fd inside ask_agent.
Luis Felipe Strano Moraes [Fri, 17 Sep 2010 02:30:01 +0000 (23:30 -0300)]
ask-password. Initializing socket_fd inside ask_agent.

Garbage value could have been used if there was an error creating the
password file.

13 years agosystemctl: make condrestart equivalent to try-restart
Michal Schmidt [Mon, 20 Sep 2010 18:45:08 +0000 (20:45 +0200)]
systemctl: make condrestart equivalent to try-restart

"condrestart" should be equivalent to "try-restart", i.e. it should be
translated into "TryRestartUnit". See
http://fedoraproject.org/wiki/Packaging:SysVInitScript#condrestart_and_try-restart

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

13 years agolocale: set LANG on Arch
Tom Gundersen [Sat, 18 Sep 2010 22:43:53 +0000 (23:43 +0100)]
locale: set LANG on Arch

This variable is defined in /etc/rc.conf

13 years agovconsole: set keyboard mapping and font settings on Arch
Tom Gundersen [Sat, 18 Sep 2010 22:45:39 +0000 (23:45 +0100)]
vconsole: set keyboard mapping and font settings on Arch

These variables are defined in /etc/rc.conf

13 years agorandom-seed: create parents of RANDOM_SEED if they do not exist.
Gustavo Sverzut Barbieri [Mon, 20 Sep 2010 13:04:10 +0000 (10:04 -0300)]
random-seed: create parents of RANDOM_SEED if they do not exist.

it may happen that parent directories of RANDOM_SEED do not exist, in
that case we must create it otherwise save will not work.

13 years agoupdate fixme
Lennart Poettering [Mon, 20 Sep 2010 19:47:32 +0000 (21:47 +0200)]
update fixme

13 years agoupdate fixme
Lennart Poettering [Fri, 17 Sep 2010 23:38:46 +0000 (01:38 +0200)]
update fixme

13 years agovconsole: drop vconsole config file var prefix
Lennart Poettering [Fri, 17 Sep 2010 23:20:13 +0000 (01:20 +0200)]
vconsole: drop vconsole config file var prefix

13 years agovconsole: more completely cover fedora legacy vconsole configuration
Lennart Poettering [Fri, 17 Sep 2010 23:19:46 +0000 (01:19 +0200)]
vconsole: more completely cover fedora legacy vconsole configuration

13 years agoask-password: popup notification when we ask for a password
Lennart Poettering [Fri, 17 Sep 2010 00:32:48 +0000 (02:32 +0200)]
ask-password: popup notification when we ask for a password

13 years agoask-password: extend help text a little
Lennart Poettering [Fri, 17 Sep 2010 00:13:12 +0000 (02:13 +0200)]
ask-password: extend help text a little

13 years agoask-password: optionally ask questions on tty
Lennart Poettering [Fri, 17 Sep 2010 00:10:08 +0000 (02:10 +0200)]
ask-password: optionally ask questions on tty

13 years agoask-password: add minimal framework to allow services query SSL/harddisk passphrases...
Lennart Poettering [Thu, 16 Sep 2010 23:26:29 +0000 (01:26 +0200)]
ask-password: add minimal framework to allow services query SSL/harddisk passphrases from the user

13 years agovconsole: fall back to fedora specific configuration
Lennart Poettering [Wed, 15 Sep 2010 23:58:16 +0000 (01:58 +0200)]
vconsole: fall back to fedora specific configuration

13 years agoutil: fix handling of quotes in parse_env_file()
Lennart Poettering [Wed, 15 Sep 2010 23:57:59 +0000 (01:57 +0200)]
util: fix handling of quotes in parse_env_file()

13 years agolocale: initialize locale from /etc/locale by default
Lennart Poettering [Wed, 15 Sep 2010 23:57:42 +0000 (01:57 +0200)]
locale: initialize locale from /etc/locale by default

13 years agovconsole: add new utility to initialize the virtual console
Lennart Poettering [Wed, 15 Sep 2010 22:36:41 +0000 (00:36 +0200)]
vconsole: add new utility to initialize the virtual console

13 years agoutil: use waitid() instead of waitpid() everywhere to avoid confusion due to SIGSTOP
Lennart Poettering [Wed, 15 Sep 2010 12:48:59 +0000 (14:48 +0200)]
util: use waitid() instead of waitpid() everywhere to avoid confusion due to SIGSTOP

13 years agoutil: introduce waitpid_loop()
Lennart Poettering [Wed, 15 Sep 2010 12:37:16 +0000 (14:37 +0200)]
util: introduce waitpid_loop()

13 years agosystemctl: use sizeof() instead of strlen() on literal strings
Lennart Poettering [Wed, 15 Sep 2010 01:12:04 +0000 (03:12 +0200)]
systemctl: use sizeof() instead of strlen() on literal strings

13 years agosystemctl: split job list writing to a seperate function
Zbyszek Szmek [Tue, 14 Sep 2010 23:54:15 +0000 (01:54 +0200)]
systemctl: split job list writing to a seperate function

On Tue, Sep 14, 2010 at 10:23:28PM +0200, Lennart Poettering wrote:
> On Tue, 07.09.10 17:02, Zbigniew Jędrzejewski-Szmek (zbyszek@in.waw.pl) wrote:
>
> Urks, now I commited the wrong one... Can you prep an updated patch against
> current git?
Once more sorry about that.

Fix below.

Zbyszek

13 years agoman: document that first param to ExecStart= cannot be variable substitution
Lennart Poettering [Tue, 14 Sep 2010 23:44:26 +0000 (01:44 +0200)]
man: document that first param to ExecStart= cannot be variable substitution

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

13 years agomount-setup: fix selinux label after mounting
Lennart Poettering [Tue, 14 Sep 2010 23:38:07 +0000 (01:38 +0200)]
mount-setup: fix selinux label after mounting

rhbz 629268

13 years agosystemctl: limit some column widths to widest actually used
Zbigniew Jędrzejewski-Szmek [Tue, 7 Sep 2010 08:30:52 +0000 (10:30 +0200)]
systemctl: limit some column widths to widest actually used

old
UNIT                      LOAD   ACTIVE       SUB                JOB
dev-hugepages.automount   loaded active       running                            Huge Page
dev-mqueue.automount      loaded active       waiting                            POSIX Mes
proc-sys...misc.automount loaded active       waiting                            Arbitrary
sys-kern...ebug.automount loaded active       running                            Debug Fil

new
UNIT                      LOAD   ACTIVE SUB       JOB
dev-hugepages.automount   loaded active running       Huge Pages File System Automount Poi
dev-mqueue.automount      loaded active waiting       POSIX Message Queue File System Auto
systemd-shutdownd.socket  loaded active listening     systemd Delayed Shutdown Socket

13 years agosystemctl: split job list writing to a seperate function
Zbigniew Jędrzejewski-Szmek [Tue, 7 Sep 2010 08:30:51 +0000 (10:30 +0200)]
systemctl: split job list writing to a seperate function

13 years agosystemctl: use on_tty() helper everywhere
Zbigniew Jędrzejewski-Szmek [Tue, 7 Sep 2010 08:30:50 +0000 (10:30 +0200)]
systemctl: use on_tty() helper everywhere

13 years agoman: include reference to the interface stability promise
Lennart Poettering [Tue, 14 Sep 2010 19:52:33 +0000 (21:52 +0200)]
man: include reference to the interface stability promise

13 years agoutil: SIGSTKFLT is unknown on Linux for SPARC
Lennart Poettering [Tue, 14 Sep 2010 11:56:08 +0000 (13:56 +0200)]
util: SIGSTKFLT is unknown on Linux for SPARC

13 years agobuild-sys: bump version v10
Lennart Poettering [Tue, 14 Sep 2010 00:29:58 +0000 (02:29 +0200)]
build-sys: bump version

13 years agosystemctl: use isolate when called as telinit for a runlevel
Lennart Poettering [Tue, 14 Sep 2010 00:22:55 +0000 (02:22 +0200)]
systemctl: use isolate when called as telinit for a runlevel

13 years agomanager: log job mode when running job
Lennart Poettering [Tue, 14 Sep 2010 00:16:14 +0000 (02:16 +0200)]
manager: log job mode when running job

13 years agoprefdm: make sure we start prefdm only after the getty is killed
Lennart Poettering [Tue, 14 Sep 2010 00:02:06 +0000 (02:02 +0200)]
prefdm: make sure we start prefdm only after the getty is killed

13 years agoinitctl: properly use isolate when activating runlevels
Lennart Poettering [Mon, 13 Sep 2010 23:56:14 +0000 (01:56 +0200)]
initctl: properly use isolate when activating runlevels

13 years agotarget: add implicit target/unit ordering deps only if both sides have been fully...
Lennart Poettering [Mon, 13 Sep 2010 23:51:30 +0000 (01:51 +0200)]
target: add implicit target/unit ordering deps only if both sides have been fully loaded

13 years agosocket: fix output of TCP congestion options
Lennart Poettering [Mon, 13 Sep 2010 23:31:41 +0000 (01:31 +0200)]
socket: fix output of TCP congestion options

13 years agounits: make sure the file system is writable before we write utmp data
Lennart Poettering [Mon, 13 Sep 2010 23:07:06 +0000 (01:07 +0200)]
units: make sure the file system is writable before we write utmp data

13 years agoservice: fix check for non-LSB files
Lennart Poettering [Mon, 13 Sep 2010 22:23:15 +0000 (00:23 +0200)]
service: fix check for non-LSB files

13 years agounits: add generic description for http-daemon.target
Lennart Poettering [Mon, 13 Sep 2010 22:22:47 +0000 (00:22 +0200)]
units: add generic description for http-daemon.target