summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-05-22execute: use a much lower idle timeout that default timeLennart Poettering
The idle timeout after all is for cosmetics only, hence avoid any substantial delays just for it.
2012-05-22mount: replace PID1 internal fstab parser with generatorLennart Poettering
Bit by bit we should remove non-unit parsing from PID 1 and move into generators, to clean up our code base a bit and clearly separate parsers.
2012-05-22main: only fall back to /bin/sh in case /sbin/init does not existKay Sievers
2012-05-22logind: fix write out of user state fileLennart Poettering
2012-05-22switch-root: do not use close old_root_fd after rm_rf_children()Harald Hoyer
rm_rf_children() has already closed the fd with closedir().
2012-05-22util: make sure to fstatat() at most once in rm_rf_children()Lennart Poettering
2012-05-22journal: crash when filesystem is low on spaceSjoerd Simons
When space is getting too low on a file system rotating the journal file will fail after the rotation, as opening the new logfile will fail. Recognize this when logging the error and don't try to dereference a NULL JournalFile pointer.
2012-05-22main: properly queue default.target after switched rootLennart Poettering
This also introduces rd.systemd.unit= to specify the unit to boot into in the initrd.
2012-05-22keymap: support for Lenovo IdeaPad Z570 keyboardMaxim A. Mikityanskiy
2012-05-22mount: use the same fstab extension option syntax everywhereLennart Poettering
The man page and the actual code differed, and this is now corrected
2012-05-22service: fix auto-restart handling in service_start()David Ward
Do not bypass the SERVICE_DEAD/SERVICE_FAILED state by manually issuing a start job while an automatic restart is pending.
2012-05-22service: fix auto-restart handling in service_stop()David Ward
When service_stop() handles a service in the SERVICE_AUTO_RESTART state, it calls service_set_state() to transition it to the SERVICE_DEAD state. However if the service failed, it should transition it to SERVICE_FAILED instead, which will trigger its OnFailure units. To achieve this, we now call service_enter_dead() in place of service_set_state(), which will transition the service to either SERVICE_DEAD or SERVICE_FAILED as is appropriate. Also, some misleading comments are adjusted: service_stop() is not only called on a user request, but also during an automatic restart in order to handle dependencies. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45511
2012-05-22service: actually delay auto-restart if another job is pendingDavid Ward
https://bugs.freedesktop.org/show_bug.cgi?id=45511
2012-05-22cgtop: change default depth to 3Lennart Poettering
https://bugs.freedesktop.org/show_bug.cgi?id=49778
2012-05-22Fixed handling of posix_fallocate() returned valueGuillermo Vidal
According to the man pages of posix_fallocate, it returns zero on success or an error number on failure; however, errno is not set on failure. If the kernel or a library other than glibc does not support the function for example, EOPNOTSUPP will be returned and the error will not be handled properly with original code.
2012-05-22systemd-analyze: switch to python getopt for argument parsingShawn Landden
this uses gnu style getopt, so you can put the opts at the end: (e.g.) systemd-analyze blame --user v4
2012-05-21main: allow system wide limits for servicesFrederic Crozat
2012-05-21journald: one more SYSLOG_IDENTIFIER length fixMichal Schmidt
2012-05-21journald: fix length of "SYSLOG_IDENTIFIER="Michal Schmidt
Fixes weird messages like: May 20 22:23:30 jik2 TIFIER=systemd-logind[795]: New session 46 of user gdm. https://bugzilla.redhat.com/show_bug.cgi?id=823498
2012-05-21util: rework in_initrd() logicLennart Poettering
Checking the device major/minor is not a good idea. Let's replace this with an explicit flag file, which we model after /etc/os-release and call /etc/initrd-release.
2012-05-21main: rename a few fix to follow general naming styleLennart Poettering
2012-05-21switch-root: move switch_root() call into its own .c fileLennart Poettering
2012-05-21main: do_switch_root() do not recursively remove across device boundariesHarald Hoyer
2012-05-21util: rm_rf_children() add root_dev parameterHarald Hoyer
if root_dev is set, remove subdirectories only, if the device is the same as the root_dev. This prevents to remove files across device boundaries.
2012-05-21delta/delta.c: initialize bottom for fail stateHarald Hoyer
2012-05-21core/main.c: handle the initrd timestamp differently, if in the initrdHarald Hoyer
If systemd is in the initrd/initramfs, set the initrd timestamp and do not try to read it from the RD_TIMESTAMP environment variable.
2012-05-21core/main.c: do_switch_root(): do not remove the old root if not in initrdHarald Hoyer
Only recursively remove the old root, if we have been in an initrd/initramfs.
2012-05-21core/main.c: add "--switchedroot" parameterHarald Hoyer
If systemd serializes from a switch_root, it adds "--switchedroot" to the systemd in the real root. If "--switchedroot" is found, then we do not skip all the stuff, which is skipped for normal rexecs.
2012-05-21manager: only serialize the timestamps for the initramfs if in_initrd()Harald Hoyer
2012-05-21util.c: add in_initrd()Harald Hoyer
in_initrd() checks, if the stat() for the device for "/" is 1, which it is for the initramfs.
2012-05-21main: corrected do_switch_root()Harald Hoyer
do_switch_root now mount moves "/dev", "/proc", "/sys", "/run" and removes the old root recursively.
2012-05-21delta: fix spelling of overriddenNis Martensen
2012-05-21util: fix typo in newdupFrederic Crozat
2012-05-21sd-pam: Drop uid so parent signal arrives at child.Auke Kok
The PAM helper thread needs to capture the death signal from the parent, but is prohibited from doing so since when the child dies as normal user, the kernel won't allow it to send a TERM to the PAM helper thread which is running as root. This causes the PAM threads to never exit, accumulating after user sessions exit. There is however really no need to keep the PAM threads running as root, so, we can just setresuid() to the same user as defined in the unit file for the parent thread (User=). This makes the TERM signal arrive as normal. In case setresuid() fails, we ignore the error, so we at least fall back to the current behaviour.
2012-05-21journalctl: fix built-in usage outputDaniel Mack
This brings journalctl's built-in usage output in sync with the man page. There are no commands to pass, and the help screen should not confuse users.
2012-05-21cryptsetup: support discards (TRIM)Matthew Monaco
2012-05-21main: try a bit harder to find an init process to execute after ↵Lennart Poettering
reexec/switch-root
2012-05-21service: make the fsck pass no configurableLennart Poettering
2012-05-21cryptsetup: a few simplificationsLennart Poettering
2012-05-21hostname-setup: also consider (ńone) an unset hostnameLennart Poettering
2012-05-21unit: introduce RequiredBy= setting in [Install], to complement WantedBy=Lennart Poettering
2012-05-21login: minor typo fixLennart Poettering
2012-05-21units: introduce new Documentation= field and make use of it everywhereLennart Poettering
This should help making the boot process a bit easier to explore and understand for the administrator. The simple idea is that "systemctl status" now shows a link to documentation alongside the other status and decriptionary information of a service. This patch adds the necessary fields to all our shipped units if we have proper documentation for them.
2012-05-21systemctl: drop useless DBus calls from 'systemctl show foo.service'Michal Schmidt
systemctl called LoadUnit, GetUnit, GetAll in this order to get the properties. It is useless to load units explicitly, because it won't ensure anything. The unit may be freed immediately by the garbage collector. It is unnecessary to call GetUnit, because systemctl can easily translate the unit name to DBus path by itself. GetAll will load the unit if necessary.
2012-05-21dbus-unit: always load the unit before handling a message for itMichal Schmidt
We need to be able to show the properties even of inactive units. systemctl loads the unit before getting its properties, but this is racy as the garbage collector may kick in right after the loading. Fix it by always loading the unit before handling a message for it. https://bugzilla.redhat.com/show_bug.cgi?id=814966#c6
2012-05-21delta: drop PHP'ismLennart Poettering
2012-05-21delta: don't highlight unchanged filesLennart Poettering
2012-05-21delta: introduce arg_flags field, to follow our usual schemeLennart Poettering
2012-05-16delta: use same nomenclature for equivalent and redirected everywhereLennart Poettering
2012-05-16delta: enums are much cooler than definesLennart Poettering