chiark / gitweb /
elogind.git
10 years agomanager: serialize/deserialize finish timestamp
Lennart Poettering [Mon, 18 Oct 2010 20:39:06 +0000 (22:39 +0200)]
manager: serialize/deserialize finish timestamp

10 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

10 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

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

10 years agoumount: disable dm devices by devnode, not by path name
Lennart Poettering [Thu, 14 Oct 2010 16:17:23 +0000 (18:17 +0200)]
umount: disable dm devices by devnode, not by path name

10 years agofedora: add compat unit for /sbin/halt.local
Lennart Poettering [Thu, 14 Oct 2010 01:59:49 +0000 (03:59 +0200)]
fedora: add compat unit for /sbin/halt.local

10 years agosystemctl: accept -f as short for --force
Lennart Poettering [Thu, 14 Oct 2010 01:19:13 +0000 (03:19 +0200)]
systemctl: accept -f as short for --force

10 years agounits: introduce final.target that can be used to plug units between shutdown.target...
Lennart Poettering [Thu, 14 Oct 2010 01:07:36 +0000 (03:07 +0200)]
units: introduce final.target that can be used to plug units between shutdown.target and the final shutdown

10 years agounits: get rid of distro-specific shutdown scripts, replace them by systemd-shutdown...
Lennart Poettering [Thu, 14 Oct 2010 00:58:37 +0000 (02:58 +0200)]
units: get rid of distro-specific shutdown scripts, replace them by systemd-shutdown invocations

10 years agoumount: try to get rid of DM devices
Lennart Poettering [Thu, 14 Oct 2010 00:33:09 +0000 (02:33 +0200)]
umount: try to get rid of DM devices

10 years agoshutdown: log to console by default
Lennart Poettering [Wed, 13 Oct 2010 23:27:31 +0000 (01:27 +0200)]
shutdown: log to console by default

10 years agounits: introduce kexec.service, kexec.target and exit.target
Lennart Poettering [Wed, 13 Oct 2010 22:57:52 +0000 (00:57 +0200)]
units: introduce kexec.service, kexec.target and exit.target

10 years agovala: register new D-Bus calls
Fabiano Fidencio [Wed, 13 Oct 2010 22:56:50 +0000 (00:56 +0200)]
vala: register new D-Bus calls

10 years agosystemctl: rework halt/reboot/poweroff/kexec/exit logic around --force
Lennart Poettering [Wed, 13 Oct 2010 22:56:12 +0000 (00:56 +0200)]
systemctl: rework halt/reboot/poweroff/kexec/exit logic around --force

10 years agomanager: hookup shutdown helper and signals
Lennart Poettering [Wed, 13 Oct 2010 22:54:48 +0000 (00:54 +0200)]
manager: hookup shutdown helper and signals

10 years agodbus: expose shutdown helper via D-Bus
Lennart Poettering [Wed, 13 Oct 2010 22:53:51 +0000 (00:53 +0200)]
dbus: expose shutdown helper via D-Bus

10 years agomanager: hookup execution of systemd-shutdown helper
Fabiano Fidencio [Wed, 13 Oct 2010 22:52:26 +0000 (00:52 +0200)]
manager: hookup execution of systemd-shutdown helper

(Modified by Lennart Poettering)

10 years agoshutdown: make use of wait_for_terminate_and_warn()
Lennart Poettering [Wed, 13 Oct 2010 22:50:11 +0000 (00:50 +0200)]
shutdown: make use of wait_for_terminate_and_warn()

10 years agoshutdown: execute rescue kill only once
Lennart Poettering [Wed, 13 Oct 2010 22:49:53 +0000 (00:49 +0200)]
shutdown: execute rescue kill only once

10 years agoshutdown: don't chdir to /, since init is running with / as cwd anyway
Lennart Poettering [Wed, 13 Oct 2010 22:49:22 +0000 (00:49 +0200)]
shutdown: don't chdir to /, since init is running with / as cwd anyway

10 years agoumount: be a bit more verbose when unable to umount/unswap/delete loopbacks
Lennart Poettering [Wed, 13 Oct 2010 22:43:35 +0000 (00:43 +0200)]
umount: be a bit more verbose when unable to umount/unswap/delete loopbacks

10 years agoumount: simplify code for deactivating loop devices
Lennart Poettering [Wed, 13 Oct 2010 22:43:13 +0000 (00:43 +0200)]
umount: simplify code for deactivating loop devices

10 years agoumount: properly enumerate loopback devices
Lennart Poettering [Wed, 13 Oct 2010 22:42:44 +0000 (00:42 +0200)]
umount: properly enumerate loopback devices

10 years agoumount: unescape path from /proc/self/mountinfo first, then check against api mount...
Lennart Poettering [Wed, 13 Oct 2010 22:41:57 +0000 (00:41 +0200)]
umount: unescape path from /proc/self/mountinfo first, then check against api mount list

10 years agocondition: fix copyright
Lennart Poettering [Wed, 13 Oct 2010 22:40:39 +0000 (00:40 +0200)]
condition: fix copyright

10 years agomount: pull in fsck only in systemd instances
Lennart Poettering [Wed, 13 Oct 2010 15:18:25 +0000 (17:18 +0200)]
mount: pull in fsck only in systemd instances

10 years agomove .h file from SOURCES to DIST to make vala autotools happy
Kay Sievers [Wed, 13 Oct 2010 11:55:06 +0000 (13:55 +0200)]
move .h file from SOURCES to DIST to make vala autotools happy

10 years agomount: hook in q fsck@.service instance for all mount points with passno > 0
Lennart Poettering [Wed, 13 Oct 2010 01:57:04 +0000 (03:57 +0200)]
mount: hook in q fsck@.service instance for all mount points with passno > 0

10 years agosystemctl: warn if user enables unit with no installation instructions
Lennart Poettering [Wed, 13 Oct 2010 01:13:23 +0000 (03:13 +0200)]
systemctl: warn if user enables unit with no installation instructions

10 years agodbus: add introspection to midlevel paths
Lennart Poettering [Wed, 13 Oct 2010 01:03:31 +0000 (03:03 +0200)]
dbus: add introspection to midlevel paths

10 years agolookup: look for dynamic throw-away units in /dev/.systemd/system
Lennart Poettering [Wed, 13 Oct 2010 00:34:21 +0000 (02:34 +0200)]
lookup: look for dynamic throw-away units in /dev/.systemd/system

10 years agoinotify: properly handle multiple inotify events per read()
Lennart Poettering [Wed, 13 Oct 2010 00:34:00 +0000 (02:34 +0200)]
inotify: properly handle multiple inotify events per read()

10 years agounit: add minimal condition checker for unit startup
Lennart Poettering [Wed, 13 Oct 2010 00:15:41 +0000 (02:15 +0200)]
unit: add minimal condition checker for unit startup

10 years agoswap: major rework, use /sbin/swapon for setting up swaps, fix merging of aliased...
Lennart Poettering [Tue, 12 Oct 2010 02:07:43 +0000 (04:07 +0200)]
swap: major rework, use /sbin/swapon for setting up swaps, fix merging of aliased swap disks

10 years agomount: minor cleanups
Lennart Poettering [Tue, 12 Oct 2010 02:06:21 +0000 (04:06 +0200)]
mount: minor cleanups

10 years agosystemctl: drop [] around date in status output
Lennart Poettering [Tue, 12 Oct 2010 02:05:29 +0000 (04:05 +0200)]
systemctl: drop [] around date in status output

10 years agosystemctl: show whether we follow somebody in 'status' output
Lennart Poettering [Tue, 12 Oct 2010 02:04:54 +0000 (04:04 +0200)]
systemctl: show whether we follow somebody in 'status' output

10 years agoupdate fixme
Lennart Poettering [Tue, 12 Oct 2010 02:04:22 +0000 (04:04 +0200)]
update fixme

10 years agoservice: introduce Restart=on-failure and Restart=on-abort
Lennart Poettering [Fri, 8 Oct 2010 16:34:54 +0000 (18:34 +0200)]
service: introduce Restart=on-failure and Restart=on-abort

10 years agounits: enable utmp for serial gettys too
Lennart Poettering [Fri, 8 Oct 2010 16:22:44 +0000 (18:22 +0200)]
units: enable utmp for serial gettys too

10 years agoutil: don't specifically check for the /dev/null major/minor, just check whether...
Lennart Poettering [Fri, 8 Oct 2010 16:22:28 +0000 (18:22 +0200)]
util: don't specifically check for the /dev/null major/minor, just check whether something is a char or block device

10 years agounit: rename 'banned' load state to 'masked'
Lennart Poettering [Fri, 8 Oct 2010 16:21:52 +0000 (18:21 +0200)]
unit: rename 'banned' load state to 'masked'

10 years agoservice: optionally, create INIT_PROCESS/DEAD_PROCESS entries for a service
Lennart Poettering [Fri, 8 Oct 2010 14:06:23 +0000 (16:06 +0200)]
service: optionally, create INIT_PROCESS/DEAD_PROCESS entries for a service

This should fix accounting for pam_limits and suchlike.

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

10 years agosystemd-shutdown: add umount.h to sources
Kay Sievers [Fri, 8 Oct 2010 12:47:55 +0000 (14:47 +0200)]
systemd-shutdown: add umount.h to sources

10 years agosystemctl: fix 'systemctl enable getty@.service'
Lennart Poettering [Fri, 8 Oct 2010 01:09:25 +0000 (03:09 +0200)]
systemctl: fix 'systemctl enable getty@.service'

10 years agoservice: increase default timeout for sysv scripts to 3min
Lennart Poettering [Fri, 8 Oct 2010 00:49:44 +0000 (02:49 +0200)]
service: increase default timeout for sysv scripts to 3min

For SysV services we cannot set the timeout inside the configuration
file. Hence let's pick a large timeout by default.

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

10 years agomount: properly handle NULL fstype
Lennart Poettering [Fri, 8 Oct 2010 00:43:05 +0000 (02:43 +0200)]
mount: properly handle NULL fstype

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

10 years agounit: introduce 'banned' load state for units symlinked to /dev/null
Lennart Poettering [Fri, 8 Oct 2010 00:31:36 +0000 (02:31 +0200)]
unit: introduce 'banned' load state for units symlinked to /dev/null

10 years agoupdate fixme
Lennart Poettering [Thu, 7 Oct 2010 21:50:34 +0000 (23:50 +0200)]
update fixme

10 years agosystemd-user-sessions: install .service file and enable by default
Lennart Poettering [Thu, 7 Oct 2010 21:48:48 +0000 (23:48 +0200)]
systemd-user-sessions: install .service file and enable by default

10 years agouser-sessions: properly unlink both nologin files
Lennart Poettering [Thu, 7 Oct 2010 21:16:48 +0000 (23:16 +0200)]
user-sessions: properly unlink both nologin files

10 years agouser-sessions: add minimal utility to kill user sessions that shall be called before...
Lennart Poettering [Thu, 7 Oct 2010 20:38:40 +0000 (22:38 +0200)]
user-sessions: add minimal utility to kill user sessions that shall be called before destroying services on shutdown

10 years agoshutdown: drop last referral to mp->read_only
Lennart Poettering [Thu, 7 Oct 2010 18:47:26 +0000 (20:47 +0200)]
shutdown: drop last referral to mp->read_only

10 years agoshutdown: drop redundant read_only bool var
Lennart Poettering [Thu, 7 Oct 2010 18:46:35 +0000 (20:46 +0200)]
shutdown: drop redundant read_only bool var

10 years agoshutdown: create /var/run/nologin instead of /etc/nologin which is supported since...
Lennart Poettering [Thu, 7 Oct 2010 18:46:02 +0000 (20:46 +0200)]
shutdown: create /var/run/nologin instead of /etc/nologin which is supported since PAM 1.1.2

10 years agoutil: unify implementations of freeze()
Lennart Poettering [Thu, 7 Oct 2010 17:34:56 +0000 (19:34 +0200)]
util: unify implementations of freeze()

10 years agouse common names: fixme -> TODO, bootstrap.sh -> autogen.sh
Kay Sievers [Thu, 7 Oct 2010 17:30:54 +0000 (19:30 +0200)]
use common names: fixme -> TODO, bootstrap.sh -> autogen.sh

10 years agoREADME: Check for libudev-160, as in configure.ac
Fabiano Fidencio [Thu, 7 Oct 2010 11:24:42 +0000 (04:24 -0700)]
README: Check for libudev-160, as in configure.ac

10 years agoshutdown: Adding binary to shutdown the system
Fabiano Fidencio [Thu, 7 Oct 2010 11:24:41 +0000 (04:24 -0700)]
shutdown: Adding binary to shutdown the system

This functions are working as follows:
   - Send a SIGTERM to all processes that may be finished
   - Send a SIGKILL to all processes that still live and may be finished
   - Try to unmount all mount points
   - Try to remount read-only all mount points that can't be umounted
   - Umount all swap devices
   - Umount and detach all loopback devices
   - Call [poweroff|halt|reboot|kexec]

TODO:
   - Umount device-mapper.
   - Make log work. So far it is being useless as we do not parse
     /etc/systemd/system.conf, kernel command line but just
     environment, however we're executed by init and thus have no
     useful variables. Forcing it to target=kmsg/console and
     level=debug also does not produce any output, however writing to
     /dev/console does work (hack used during debug).

10 years agoumount: Adding unmount functions to be used in shutdown
Fabiano Fidencio [Thu, 7 Oct 2010 12:43:57 +0000 (05:43 -0700)]
umount: Adding unmount functions to be used in shutdown

This functions will:
   - umount all mount points that aren't API
   - remount read-only all mount points that can't be umounted
   - umount all swap devices.
   - detach all loopback devices

TODO:
   - umount dms

Mountpoints are being read from /proc/self/mountinfo.
Swaps are being read from /proc/swaps.
Loop devices from /sys/class/block/loop*.

10 years agoutil: Adding a strneq, to represent (!strncmp(a, b, n))
Fabiano Fidencio [Thu, 7 Oct 2010 11:24:39 +0000 (04:24 -0700)]
util: Adding a strneq, to represent (!strncmp(a, b, n))

As we have streq to repesent (strcmp(a, b) == 0),I'm adding
strneq to represent (strncmp(a, b, n) == 0), that will be used
in umount.c (at least).

10 years agovconsole-setup: fix path on Arch
Lucas De Marchi [Thu, 7 Oct 2010 17:00:23 +0000 (14:00 -0300)]
vconsole-setup: fix path on Arch

Arch uses the same paths and default font of gentoo. Previously,
systemd-vconsole-setup was failing with the following message:

systemd-vconsole-setup[59]: /bin/setfont failed with error code 1.

10 years agosd-daemon: in some places sizeof(sa_family_t) actually does make sense
Lennart Poettering [Thu, 7 Oct 2010 17:01:26 +0000 (19:01 +0200)]
sd-daemon: in some places sizeof(sa_family_t) actually does make sense

10 years agobuild-sys: prepare v11 v11
Lennart Poettering [Thu, 7 Oct 2010 13:39:28 +0000 (15:39 +0200)]
build-sys: prepare v11

10 years agoupdate fixme
Lennart Poettering [Thu, 7 Oct 2010 01:56:11 +0000 (03:56 +0200)]
update fixme

10 years agounits: make sure we run all early boot units before entering basic.target
Lennart Poettering [Thu, 7 Oct 2010 01:47:39 +0000 (03:47 +0200)]
units: make sure we run all early boot units before entering basic.target

10 years agoupdate fixme
Lennart Poettering [Thu, 7 Oct 2010 01:34:14 +0000 (03:34 +0200)]
update fixme

10 years agoutil: never use sizeof(sa_family_t) when calculating sockaddr sizes
Lennart Poettering [Thu, 7 Oct 2010 00:34:17 +0000 (02:34 +0200)]
util: never use sizeof(sa_family_t) when calculating sockaddr sizes

10 years agomanager: notify plymouth about progress if it is running
Lennart Poettering [Wed, 6 Oct 2010 01:55:49 +0000 (03:55 +0200)]
manager: notify plymouth about progress if it is running

10 years agounit: continue boot when exiting emergency/resuce shell
Lennart Poettering [Wed, 6 Oct 2010 00:43:06 +0000 (02:43 +0200)]
unit: continue boot when exiting emergency/resuce shell

10 years agosystemctl: require correctly formed unit names when enabling units
Lennart Poettering [Wed, 6 Oct 2010 00:33:40 +0000 (02:33 +0200)]
systemctl: require correctly formed unit names when enabling units

10 years agoREADME: mention libcap dependency
Lennart Poettering [Tue, 5 Oct 2010 21:39:32 +0000 (23:39 +0200)]
README: mention libcap dependency

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

10 years agotimer: Add missing break in switch
Matthias Schiffer [Tue, 28 Sep 2010 13:25:20 +0000 (15:25 +0200)]
timer: Add missing break in switch

10 years agomount: Don't stop the mountinfo parser if one line can't be read
Fabiano FidĂȘncio [Tue, 5 Oct 2010 15:41:06 +0000 (08:41 -0700)]
mount: Don't stop the mountinfo parser if one line can't be read

The current behavior of the /proc/self/mountinfo parser
is to stop the parser on parse failures

I'm only changing this behavior to try the next line and adding
a warning if occurs a fail.

10 years agonotify: fix include properly
Lennart Poettering [Tue, 5 Oct 2010 19:52:37 +0000 (21:52 +0200)]
notify: fix include properly

10 years agofix typo: s/seperat/separat/g
Dave Reisner [Wed, 29 Sep 2010 13:13:04 +0000 (09:13 -0400)]
fix typo: s/seperat/separat/g

10 years agoreadahead: fix printf format string
Lennart Poettering [Tue, 5 Oct 2010 19:49:17 +0000 (21:49 +0200)]
readahead: fix printf format string

10 years agonotify: add missing include
Lennart Poettering [Tue, 5 Oct 2010 19:49:01 +0000 (21:49 +0200)]
notify: add missing include

10 years agobuild-sys: Add compiler and linker flags to reduce binary size
Gustavo Sverzut Barbieri [Tue, 5 Oct 2010 19:45:51 +0000 (21:45 +0200)]
build-sys: Add compiler and linker flags to reduce binary size

Reduce number of exported symbols with -fvisibility=hidden by default,
this is safe as we're not generating and loadable library and our
binaries should have no exported symbol other than main(). This alone
reduces around 4kb per binary.

It will also request GCC to emit every function and data variable in
its own section, then request the linker to remove unused
sections. This reduces the size of utility tools
(/lib/systemd/systemd-*) by half or even more (in my system some
binaries went from 84kb to 32kb).

10 years agounit-name: fix unit name escaping
Mike Kelly [Fri, 1 Oct 2010 23:58:07 +0000 (19:58 -0400)]
unit-name: fix unit name escaping

we want to do a bitwise shift, not a greater-than comparision

10 years agoman: fix typo
Lennart Poettering [Tue, 5 Oct 2010 19:22:41 +0000 (21:22 +0200)]
man: fix typo

10 years agoman: document Sockets= switch
Lennart Poettering [Tue, 5 Oct 2010 18:51:00 +0000 (20:51 +0200)]
man: document Sockets= switch

10 years agoman: document readahdea split-off
Lennart Poettering [Tue, 5 Oct 2010 18:44:37 +0000 (20:44 +0200)]
man: document readahdea split-off

10 years agoservice: rename settings for Restart= from 'restart-always' to 'always' and similar
Lennart Poettering [Tue, 5 Oct 2010 18:30:44 +0000 (20:30 +0200)]
service: rename settings for Restart= from 'restart-always' to 'always' and similar

10 years agosd-daemon: split off sd_readahead() since it is not a feature of systemd itself but...
Lennart Poettering [Tue, 5 Oct 2010 18:20:38 +0000 (20:20 +0200)]
sd-daemon: split off sd_readahead() since it is not a feature of systemd itself but of an auxiliary tool

10 years agomount: sort network mounts after network.target by default
Lennart Poettering [Tue, 5 Oct 2010 17:49:38 +0000 (19:49 +0200)]
mount: sort network mounts after network.target by default

10 years agosocket: make sockets to pass to a service configurable
Lennart Poettering [Tue, 5 Oct 2010 17:49:15 +0000 (19:49 +0200)]
socket: make sockets to pass to a service configurable

10 years agosocket: make service to start on incoming traffic configurable
Lennart Poettering [Thu, 30 Sep 2010 00:19:12 +0000 (02:19 +0200)]
socket: make service to start on incoming traffic configurable

10 years agoman: fix suggested autoconf snippet
Lennart Poettering [Thu, 30 Sep 2010 00:18:55 +0000 (02:18 +0200)]
man: fix suggested autoconf snippet

10 years agoreadahead: ignore deleted files
Lennart Poettering [Wed, 29 Sep 2010 22:52:48 +0000 (00:52 +0200)]
readahead: ignore deleted files

10 years agoupdate fixme
Kay Sievers [Sat, 2 Oct 2010 13:09:22 +0000 (15:09 +0200)]
update fixme

10 years agoreadahead: minor 32bit fixes
Lennart Poettering [Thu, 30 Sep 2010 16:06:02 +0000 (18:06 +0200)]
readahead: minor 32bit fixes

10 years agotmpfiles: fix typo in comment
Andreas Jaeger [Wed, 29 Sep 2010 08:08:24 +0000 (10:08 +0200)]
tmpfiles: fix typo in comment

10 years agoreadahead: preload pack file
Lennart Poettering [Wed, 29 Sep 2010 01:11:35 +0000 (03:11 +0200)]
readahead: preload pack file

10 years agounits: getty.target is pulled in via /lib these days
Lennart Poettering [Wed, 29 Sep 2010 01:03:37 +0000 (03:03 +0200)]
units: getty.target is pulled in via /lib these days

10 years agoreadahead: make sure /dev/.systemd/readahead exists
Lennart Poettering [Wed, 29 Sep 2010 00:54:09 +0000 (02:54 +0200)]
readahead: make sure /dev/.systemd/readahead exists

10 years agounits: properly terminate readahead collection 10s after boot
Lennart Poettering [Wed, 29 Sep 2010 00:52:22 +0000 (02:52 +0200)]
units: properly terminate readahead collection 10s after boot

10 years agoupdate fixme
Lennart Poettering [Tue, 28 Sep 2010 23:39:54 +0000 (01:39 +0200)]
update fixme

10 years agounits: get rid of special setup services for /var/run, /var/lock and /tmp, and rely...
Lennart Poettering [Tue, 28 Sep 2010 23:39:09 +0000 (01:39 +0200)]
units: get rid of special setup services for /var/run, /var/lock and /tmp, and rely on tmpfiles.d/ instead

10 years agounits: ship unit file for systemd-tmpfiles by default
Lennart Poettering [Tue, 28 Sep 2010 23:30:41 +0000 (01:30 +0200)]
units: ship unit file for systemd-tmpfiles by default