summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* core/manager: print status messages about running jobsstat2Michal Schmidt2013-02-283-2/+178
| | | | | | | | | | | Sometimes the boot gets stuck until a timeout hits. The usual timeouts are on the order of minutes, so users may lose patience. Print animated status messages telling the names of units with running jobs to make it easy to see what systemd is waiting for. The animation looks cooler with a shorter interval, but 1 s is OK and should not be too hard on slow serial console users.
* core: count active units that may mind our printing to /dev/consoleMichal Schmidt2013-02-282-0/+16
|
* core/execute: determine if ExecContext may fiddle with /dev/consoleMichal Schmidt2013-02-282-0/+33
| | | | | There is some guesswork, but it should work satisfactorily for the purpose of knowing when to suppress printing of status messages.
* core/execute: add internal is_terminal_output()Michal Schmidt2013-02-281-1/+9
| | | | | | | Similar to already existing is_terminal_input(). Note that the only current user (connect_logger_as) is never called for EXEC_OUTPUT_TTY, so it won't mind whether we accept it.
* util: split resolving of /dev/console into a new functionMichal Schmidt2013-02-282-13/+29
|
* core/unit: use a temp variable for manager pointer in unit_notify()Michal Schmidt2013-02-281-11/+14
|
* util, core: add support for ephemeral status linesMichal Schmidt2013-02-285-11/+18
| | | | | Ephemeral status lines do not end with a newline and they expect to be overwritten by the next printed status line.
* core/transaction: replace a bare status_printf()Michal Schmidt2013-02-281-2/+2
| | | | | | Like other status messages, this one too should not be printed unconditionally, but it should take the manager state into account. unit_status_printf() does that.
* core: redefine unit_status_printf()Michal Schmidt2013-02-283-11/+14
| | | | | | Take advantage of the fact that almost all callers want to pass unit description as the last parameter. Those who don't can use the more flexible manager_status_printf().
* core/manager: make a couple of functions staticMichal Schmidt2013-02-282-5/+2
| | | | They're not used outside manager.c anymore.
* core: add manager_status_printf()Michal Schmidt2013-02-284-18/+17
| | | | | | | unit_status_printf() checks the state of the manager, not of the unit as such. Move it to manager.c and rename it to manager_status_printf(). Temporarily keep unit_status_printf as a wrapper macro.
* core: keep track of the number of JOB_RUNNING jobsMichal Schmidt2013-02-272-4/+11
|
* man: document the new systemctl cgroup commandsLennart Poettering2013-02-271-3/+104
|
* systemctl: fix minimal number of params for new cgroup commandsLennart Poettering2013-02-271-5/+5
|
* update TODOLennart Poettering2013-02-271-4/+1
|
* unit: rework resource management APILennart Poettering2013-02-2717-638/+874
| | | | | | | | | This introduces a new static list of known attributes and their special semantics. This means that cgroup attribute values can now be automatically translated from user to kernel notation for command line set settings, too. This also adds proper support for multi-line attributes.
* systemctl: fix indentationLennart Poettering2013-02-271-11/+10
|
* update TODOLennart Poettering2013-02-271-0/+4
|
* man: clarify how to configure default control group hierarchies for services ↵Lennart Poettering2013-02-272-14/+30
| | | | and sessions
* Revert "log: fix fallbacks to kmsg"Lennart Poettering2013-02-271-10/+9
| | | | | | | | | | | | | | | | This reverts commit 4a01181e460686d8b4a543b1dfa7f77c9e3c5ab8. This patch broke LOG_TARGET_AUTO, i.e. automatic selection of STDERR if it is a TTY with a fallback on the journal and kmsg otherwise. The general rule should probably be: log_open() -- open the "best" possible logging channel according to log_target configuration. log_dispatch() -- don't open any log channels ever, with the exception of kmsg since that has no drawbacks. And do this only on true errors of the better log channel, not just when it wasn't opened.
* mount-setup: mount pstore filesystemKay Sievers2013-02-272-4/+7
|
* log-show: look at everything in /run/log/journalZbigniew Jędrzejewski-Szmek2013-02-261-1/+3
| | | | | | | | | | | | | | | | | | Logs written by journald from the initramfs may be written to a directory with the name created from a random machine-id. Afterwards, when the root filesystem has been mounted and machine-id reinitalized, logs will be written to the directory with a name created from the proper machine-id. When logs are flushed to /var/log/journal, everything is copied to one output directory. When journalctl without '-m' is run after the logs have been flushed to /var/log/journal, all messages are shown. However, when run while logs are still in /run/log/journal, those stored under the random machine-id will not be shown. Make journalctl behave the same regardless whether persistent storage has been enabled or not, and slurp all files from /run/log/journal even without '-m'.
* bash-completion: journalctl query by binary and deviceZbigniew Jędrzejewski-Szmek2013-02-261-0/+14
| | | | | | | | | | | | | | The approach taken is different between the two: - since there are many files in /usr, but messages appear only for a tiny subset, the completion is performed only for stuff shown by journalctl -F _EXE. This makes sense because the list is already in proper form. - since it is hard to convert _KERNEL_DEVICE to device file name, simply all files in /dev/ are used as possible completions. Unfortunately zsh completion requires more work and is not covered by this commit.
* update TODO, hackfest editionLennart Poettering2013-02-271-1/+50
|
* test-util.c: added hexchar, unhexchar, octchar, unoctchar, decchar, ↵Daniel Buch2013-02-261-0/+37
| | | | undecchar tests
* TODO: updateKay Sievers2013-02-261-0/+2
|
* kernel-install: rename the loader entry filenameHarald Hoyer2013-02-261-1/+1
| | | | | | | | The wildcard matching the default loader entry should always be able to point to the same machine. So instead of sorting by <distribution>-<kernel-version>-<machine-id> we better sort by <machine-id>-<kernel-version>.
* kernel-install: create the loader entries with absolute paths relative to /bootHarald Hoyer2013-02-261-2/+2
|
* kernel-install: replace URLs with man pages in the error messagesHarald Hoyer2013-02-261-2/+2
|
* kernel-install: fixed paths in boot loader entryHarald Hoyer2013-02-261-13/+15
| | | | For the loader entry a relative path has to be used.
* tests: add a few more tests to test-util.cThomas Hindoe Paaboel Andersen2013-02-251-4/+67
| | | | | | | | | Add asserts on the resutls in FOREACH_WORD_QUOTED Added tests for: FOREACH_WORD strstrip delete_chars in_charset
* kernel-install: remove LANG=Kay Sievers2013-02-251-2/+0
|
* nspawn: add --bind= and --bind-ro= to bind mount host paths into the containerLennart Poettering2013-02-252-22/+117
|
* kernel-install(8): add documentation about the configuration files usedHarald Hoyer2013-02-251-0/+28
|
* kernel-install: add kernel-install toolHarald Hoyer2013-02-254-0/+294
|
* Revert "nspawn: catch config mistake of specifying -b and args"Michal Schmidt2013-02-252-8/+1
| | | | | | | | | This reverts commit cb96a2c69a312fb089fef4501650f4fc40a1420b. It is not a mistake to pass args when -b is specified. They will simply be passed on to the container's init. The manpage needs fixing, that's true.
* debug-shell: don't be picky, use /bin/sh rather than /bin/bashTom Gundersen2013-02-251-1/+1
| | | | | In a minimal initramfs, one might not always have the full bash available. Typically if using busybox.
* build: remove explicit -shared in LDFLAGSDave Reisner2013-02-241-4/+0
| | | | | | | | | | | This doesn't need to be passed, as it's handled by libtool. Since the default for autoconf is --disable-static, this change is effectively a noop. It only matters if you pass --enable-static, in which case the static libs for systemd libraries will actually be built. Nitpicky, but this only affects systemd libs. The override for the other libs remains since these libs are always loaded dynamically and never compiled staticly.
* journal: fix --untilPaul W. Frields2013-02-241-1/+3
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=58946
* nspawn: catch config mistake of specifying -b and argsZbigniew Jędrzejewski-Szmek2013-02-242-1/+8
|
* test: test irreversible jobsMichal Schmidt2013-02-233-2/+21
|
* build-sys: move systemd-analyze to /usr/binKay Sievers2013-02-221-3/+3
|
* TODO: drop two itemsZbigniew Jędrzejewski-Szmek2013-02-221-4/+0
|
* systemctl: generalize action table to be usable in more action<->verb mappingsMichal Schmidt2013-02-221-75/+38
| | | | Should be no functional change.
* systemctl: make shutdown operations use irreversible jobsMichal Schmidt2013-02-223-14/+25
| | | | | | | | | | | | Occasionally people report problem with reboot/poweroff operations hanging in the middle. One known cause is when a new transaction to start a unit is enqueued while the shutdown is going on. The start of the unit conflicts with the shutdown jobs, so they get cancelled. The failure case can be quite unpleasant, becase getty and sshd may already be stopped. Fix it by using irreversible jobs for shutdown (reboot/poweroff/...) actions. This applies to commands like "reboot", "telinit 6", "systemctl reboot". Should someone desire to use reversible jobs, they can say "systemctl start reboot.target".`
* core, systemctl: add support for irreversible jobsMichal Schmidt2013-02-227-13/+46
| | | | | | | Add a new job mode: replace-irreversibly. Jobs enqueued using this mode cannot be implicitly canceled by later enqueued conflicting jobs. They can however still be canceled with an explicit "systemctl cancel" call.
* systemctl: make "systemctl default" use "isolate" job modeMichal Schmidt2013-02-222-2/+3
| | | | | | "systemctl default" should behave identically to "telinit N" (where N is the corresponding runlevel target number), therefore it should use isolate job mode too.
* journal: sd_journal_get_cursor should return 0 on successZbigniew Jędrzejewski-Szmek2013-02-221-1/+1
| | | | | | | Documentation states that 0 is correct, and all other similar functions return 0 on success. Pointed-out-by: Steven Hiscocks <steven-systemd@hiscocks.me.uk>
* TODO: removed ratelimitHarald Hoyer2013-02-211-1/+0
|
* fstab-generator: change kernel command line mount path for rootHarald Hoyer2013-02-212-2/+3
| | | | | Use /sysroot instead of /new_root to mount the real root in the initramfs.