summaryrefslogtreecommitdiff
path: root/src/core/main.c
AgeCommit message (Collapse)Author
2012-09-24main: don't try to mout cpuset with cpu+cpuacct anymoreLennart Poettering
Turns out cpuset needs explicit initialization before we could make use of it. Thus mounting cpuset with cpu/cpuacct would make it impossible to just create a group in "cpu" and start it.
2012-09-18core: move ManagerRunningAs to sharedZbigniew Jędrzejewski-Szmek
Note: I did s/MANAGER/SYSTEMD/ everywhere, even though it makes the patch quite verbose. Nevertheless, keeping MANAGER prefix in some places, and SYSTEMD prefix in others would just lead to confusion down the road. Better to rip off the band-aid now.
2012-09-17main: when transitioning from initrd to the main system log to kmsgLennart Poettering
When the new PID is invoked the journal socket from the initrd might still be around. Due to the default log target being journal we'd log to that initially when the new main systemd initializes even if the kernel command line included a directive to redirect systemd's logging elsewhere. With this fix we initially always log to kmsg now, if we are PID1, and only after parsing the kernel cmdline try to open the journal if that's desired. (The effective benefit of this is that SELinux performance data is now logged again to kmsg like it used to be.)
2012-09-17hwclock: always set the kernel's timezoneKay Sievers
Properly tell the kernel at bootup, and any later time zone changes, the actual system time zone. Things like the kernel's FAT filesystem driver needs the actual time zone to calculate the proper local time to use for the on-disk time stamps. https://bugzilla.redhat.com/show_bug.cgi?id=802198
2012-09-17main: bump up RLIMIT_NOFILE for systemd itselfLennart Poettering
For setups with many listening sockets the default kernel resource limit of 1024 fds is not enough. Bump this up to 64K to avoid any limitations in this regard. We are careful to pass on the kernel default to daemons however, since normally resource limits are a good to enforce, especially since select() can't handle fds > 1023.
2012-09-10selinux: close stdin/stdout/stderr before loading selinux policyLennart Poettering
Let's make sure libselinux doesn't spew to stderr
2012-09-07main: fix syntax of net_prio cgroup controllerLennart Poettering
2012-09-03main: jointly mount more controllersLennart Poettering
After talking to the cgroup kernel folks at LPC we came to the conclusion that it is probably a good idea to mount all CPU related resp. all network related cgroup controllers together, both because they are good defaults for admins and because this might prepare for eventual kernel cleanups where the ability to mount them separately is removed.
2012-08-23core: free word later in parse_proc_cmdlineLukas Nykryn
2012-08-21main: fix PR_SET_CHILD_SUBREAPER warning versionLennart Poettering
2012-08-21core: fix error checking for PR_SET_CHILD_SUBREAPERLennart Poettering
2012-08-06main: fix typoLennart Poettering
2012-08-06continue work with error messages, log_oom()Shawn Landden
Adds messages for formally silent errors: new "Failed on cmdline argument %s: %s". Removes some specific error messages for -ENOMEM in mount-setup.c. A few specific ones have been left in other binaries.
2012-07-25main: set PR_SET_CHILD_REAPER for MANAGER_USERAuke Kok
Become the reaper for all children part of the user session. Tested with several forking services.
2012-07-18unit: don't serialize job state, only unit state across switch-rootLennart Poettering
2012-07-17switch-root: don't wait for processesLennart Poettering
When we transition from the initrd to the main system, don't reap processes, so that they can be handled normally after deserialization.
2012-07-17systemd: add --version optionZbigniew Jędrzejewski-Szmek
systemd --version mirrors systemctl --version: $ ./systemd --version systemd 186 other +PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT -LIBCRYPTSETUP This information can be retrieved by other means (systemctl, etc.), but it's easier for a newbie if 'systemd --version' says something useful. And 'systemd --help' is already there, so let's complement that with '--version'.
2012-07-13main: only reopen /dev/console if we switch-root to a custom initHarald Hoyer
There's no point in reopening /dev/console if we reopen it anyway afterwards.
2012-07-13core: go on a killing spree when transitioning from initrd to main systemLennart Poettering
2012-07-10switch-root: reopen /dev/console before we switch rootLennart Poettering
2012-07-02core: mention if we are run from an initial RAM diskLennart Poettering
2012-06-28main: print detected virtualiaztion at bootLennart Poettering
2012-06-26core: make systemd.confirm_spawn=1 actually workLennart Poettering
This adds a timeout if the TTY cannot be acquired and makes sure we always output the question to the console, never to the TTY of the respective service.
2012-06-22core: remove sysv_console optionLennart Poettering
This option never made much sense. It was originally intended to make sure that the usual startup output of sysv scripts goes to the terminal. However, since SysV scripts started from a terminal would not output to that terminal, but rather /dev/console this effect was more often than not actually taking place. Nowadays systemd has much nicer boot time status output than SysV which makes the sysv output redundant. Finally, all output of services goes to the journal anyway, and is not lost. Hence, let's drop this option, and simplify things a bit.
2012-06-22cryptsetup: allow configuration of LUKS disks via the kernel cmdlineLennart Poettering
This generalizes a bit of the functionality already available in dracut.
2012-06-22man: document all kernel command line options we understandLennart Poettering
2012-05-31main: allow setting of timer slack for PID 1Lennart Poettering
2012-05-29capabilities: when dropping capabilities system-wide also drop them from ↵Lennart Poettering
usermode helpers This hooks things up with /proc/sys/kernel/usermodehelper/bset and /proc/sys/kernel/usermodehelper/inheritable.
2012-05-24main: add configuration option to alter capability bounding set for PID 1Lennart Poettering
This also ensures that caps dropped from the bounding set are also dropped from the inheritable set, to be extra-secure. Usually that should change very little though as the inheritable set is empty for all our uses anyway.
2012-05-22main: only fall back to /bin/sh in case /sbin/init does not existKay Sievers
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-21main: allow system wide limits for servicesFrederic Crozat
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-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-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-21main: try a bit harder to find an init process to execute after ↵Lennart Poettering
reexec/switch-root
2012-05-09main: fix uninitialized variableMichal Schmidt
2012-05-09main: fix assertion failure due to use of ELEMENTSOF on a non-arrayMichal Schmidt
2012-05-09manager: introduce SwitchRoot bus call for initrd/main transitionLennart Poettering
2012-05-08main: simplify+unify logic for parsing runtime booleansLennart Poettering
2012-05-08util: split-out hwclock.[ch]Kay Sievers
2012-04-24manager: drop MountAuto= and SwapAuto= optionsLennart Poettering
The ability to set MountAuto=no and SwapAuto=no was useful during the adoption phase of systemd, so that distributions could stick to their classic mount scripts a bit longer. It is about time to get rid of it now.
2012-04-20main: log to the journal in container mode, by defaultLennart Poettering
2012-04-17selinux: unify systemd and udev codeKay Sievers
2012-04-13main: unset some more env varsLennart Poettering
2012-04-12main: we want all setup functions to be in files called xxx-setup.[ch]Lennart Poettering