Michal Schmidt
eb17e93598
execute: unify setup_{output,error}
...
The functions are quite similar. Unify them into one.
The source gets shorter, the binary gets slightly smaller.
2013-02-16 01:18:08 +01:00
Michal Schmidt
47c1d80d84
execute: robustness against journald failures
...
Almost every unit logs to the journal. If journald gets a permanent
failure, units would not be able to start (exit code 209/STDOUT).
Add a fallback to /dev/null to avoid making the system entirely
unusable in such a case.
2013-02-16 01:18:02 +01:00
Michal Schmidt
4a01181e46
log: fix fallbacks to kmsg
...
write_to_journal() returns 0 if journal_fd is closed and nothing is
written. We need to make sure we'll try log_open_kmsg() then to make the
fallback work for "journal-or-kmsg".
2013-02-16 01:16:32 +01:00
William Giokas
e57b477183
man: Update bootchart.conf(5)
...
Recent changes in config options makes almost eveny variable in the man
page obsolete.
2013-02-14 16:18:46 -08:00
Harald Hoyer
8846199d20
bootchart: if "root=/dev" is not matched, don't try to read /sys
2013-02-14 13:49:48 -08:00
Thomas Hindoe Paaboel Andersen
39ccc87c8a
update TODO
2013-02-14 22:16:58 +01:00
Thomas Hindoe Paaboel Andersen
0e4ffbff01
bootchart: stricter checks of cli input
2013-02-14 22:04:17 +01:00
Thomas Hindoe Paaboel Andersen
f7900e258d
bootchart: use conf-parser & CamelCase names in .conf
2013-02-14 21:36:45 +01:00
Umut Tezduyar
47a81ba2e1
core: do not overwrite existing units source
...
Only set source for freshly created .mounts coming from
mountinfo file.
2013-02-14 15:26:34 -05:00
Zbigniew Jędrzejewski-Szmek
f6bb13ab8d
systemctl: print wall message only if successful
...
systemctl would write to the wall even if unsuccessful.
https://bugs.freedesktop.org/show_bug.cgi?id=60393
2013-02-14 15:26:34 -05:00
Zbigniew Jędrzejewski-Szmek
cec7eda533
systemctl: use automatic cleanup
2013-02-14 15:26:34 -05:00
Zbigniew Jędrzejewski-Szmek
5659774c57
nspawn: fail if unable to close pipe
2013-02-14 15:26:33 -05:00
William Giokas
c3fec6715d
man: Add even more to the bootchart man page
...
Essentially transfer the 'README' file in src/bootchart to the man page
for easier reading by users.
Moved the 'History' section to the bottom, before the 'See Also' section.
man/systemd-bootchart.xml | 100 ++++++++++++++++++++++++++++++++++++++--------
1 file changed, 83 insertions(+), 17 deletions(-)
2013-02-14 12:20:46 -08:00
Harald Hoyer
e93450c6c0
bootchart: parse /etc/os-release rather than system-release
...
Also parse it early, so that we can get it in the initramfs.
2013-02-14 11:59:16 -08:00
Harald Hoyer
b823b5e272
bootchart: more fixes for bootchart in the initramfs
2013-02-14 11:55:23 -08:00
Zbigniew Jędrzejewski-Szmek
1fd961211d
nspawn: print PID and show how to enter the namespace
...
systemd-nspawn will now print the PID of the child.
An example showing how to enter the container is added
to the man page.
Support for nsenter without an explicit command was
added in https://github.com/karelzak/util-linux/commit/5758069
(post v2.22.2). So this example requires both a new kernel
and the latest util-linux.
2013-02-14 10:40:45 -05:00
Harald Hoyer
a860325e7e
added some missing include for a5c32cff1f
2013-02-14 16:37:31 +01:00
Harald Hoyer
a5c32cff1f
honor SELinux labels, when creating and writing config files
...
Also split out some fileio functions to fileio.c and provide a SELinux
aware pendant in fileio-label.c
see https://bugzilla.redhat.com/show_bug.cgi?id=881577
2013-02-14 16:19:38 +01:00
Auke Kok
edc211f314
bootchart items
2013-02-13 20:22:12 -08:00
Zbigniew Jędrzejewski-Szmek
e670b166a0
man: use <replaceable> in various places
2013-02-13 23:09:00 -05:00
Zbigniew Jędrzejewski-Szmek
a4e0b94d31
man: add filenames to the index
...
Limiting the addition to filenames from <refsynopsis>
seems to give a good enough S/N ratio.
2013-02-13 23:09:00 -05:00
William Giokas
895aeb2779
man: bootchart: change /var/log to /run/log
...
As of [1], bootchart stores files in /run/log, not /var/log, by default.
[1] f2f85884ca
2013-02-13 15:26:55 -08:00
Auke Kok
3e37b970b5
Add systemd-analyze to .gitignore
2013-02-13 14:51:12 -08:00
Simon Peeters
1700761b06
Move systemctl dot to systemd-analyze dot
2013-02-13 14:47:05 -08:00
Simon Peeters
2265fbf7e5
systemd-analyze: rewrite in C.
...
Written by Peeters Simon <peeters.simon@gmail.com >.
Makefile stuff and cleaned up a bit by Auke Kok <auke-jan.h.kok@intel.com >.
Some code inspired by Marc-Antoine Perennou <Marc-Antoine@Perennou.com >.
2013-02-13 14:46:50 -08:00
Marc-Antoine Perennou
a38694df9c
systemctl: use parse_unit_info
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com >
2013-02-13 14:36:01 -08:00
Marc-Antoine Perennou
ddb88cc5b8
dbus: introduce parse_unit_info
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com >
2013-02-13 14:36:01 -08:00
Marc-Antoine Perennou
cdf3f17bfb
dbus: import struct unit_info from systemctl
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com >
2013-02-13 14:36:01 -08:00
Lennart Poettering
93eec5c774
update TODO
2013-02-13 23:08:52 +01:00
Lennart Poettering
b872e9a059
build-sys: make EFI support build-time optional
2013-02-13 23:08:25 +01:00
Lennart Poettering
46ba8aae2b
build-sys: make PolicyKit support compile-time optional (was runtime-optional already)
2013-02-13 23:08:25 +01:00
Zbigniew Jędrzejewski-Szmek
5322bdd4cc
build-sys: fix build without -Wl,--gc-sections
...
bootctl needs libsystemd-daemon.la too.
2013-02-13 16:15:20 -05:00
Lennart Poettering
9db11a99be
efi: efi_get_boot_options() should already sort the entries, the random order in the efivars fs is probably not useful
...
This also introduces a new FOREACH_DIRENT macro and makes use of it.
2013-02-13 22:02:40 +01:00
Lennart Poettering
61cc634bc2
efi: use efi_get_variable_string() instead of efi_get_variable() where we can
2013-02-13 21:24:10 +01:00
Lennart Poettering
3ac525bd75
update TODO
2013-02-13 21:20:42 +01:00
Daniel Buch
7b68d618a2
test-strv.c: Changed assert() to assert_se()
...
test-strv.c: Indent fix
2013-02-13 20:22:12 +01:00
Daniel Buch
40857008d8
test-strv.c: added strv_append test
2013-02-13 20:22:09 +01:00
Daniel Buch
343a896935
test-strv.c: added strv_merge_concat test
2013-02-13 20:22:05 +01:00
Daniel Buch
a1022300b9
test-strv.c: added strv_merge test
2013-02-13 20:21:44 +01:00
Lennart Poettering
cbb7712189
TODO
2013-02-13 19:36:09 +01:00
Lennart Poettering
ace188cf3a
selinux: use a dynamically sized string when generating audit messages
...
https://bugzilla.redhat.com/show_bug.cgi?id=883043
2013-02-13 19:36:09 +01:00
Thomas Hindoe Paaboel Andersen
090be86534
use streq instead of strcmp
2013-02-13 18:14:20 +01:00
Kay Sievers
b05105f0a8
bootctl: always show slashes not backslashes
2013-02-13 17:49:48 +01:00
Kay Sievers
4d34c4951a
efi: unify BootXXXX reading
2013-02-13 17:35:20 +01:00
Lennart Poettering
092c4c437f
Revert "log_error() if inotify_add_watch() fails"
...
This reverts commit 2826d14091 .
We never should generate log messages from a library.
2013-02-13 16:25:33 +01:00
Harald Hoyer
2826d14091
log_error() if inotify_add_watch() fails
...
[zj: Reworded message s/to watch/to add watch on/ to make it clear
that it was the watch init action that failed, and not the
"process of watching". I think this way it'll be clearer to
people who don't know what inotify does.]
2013-02-13 10:04:02 -05:00
Zbigniew Jędrzejewski-Szmek
f04e95ba6b
sysctl: fix uninitalized memory access in error path
...
src/sysctl/sysctl.c: In function ‘parse_file’:
src/sysctl/sysctl.c:172:41: warning: ‘property’ may be used uninitialized in this function [-Wmaybe-uninitialized]
2013-02-13 09:55:52 -05:00
Zbigniew Jędrzejewski-Szmek
5f9cfd4c38
man: rename systemd.conf to systemd-system.conf
...
Alias as systemd-user.conf is also provided. This should help
users running systemd in session mode.
https://bugzilla.redhat.com/show_bug.cgi?id=690868
2013-02-13 09:48:32 -05:00
William Giokas
a7f5bb1eaf
man: Make options consistent
...
Option listings seemed to be pretty much random, some were short opt,
long opt, others were long opt, short opt. This just makes every option
with a short and long opt that I could find in the order short opt, long
opt, for formatting's sake.
2013-02-13 08:57:20 -05:00
William Giokas
5797606612
man: Write man page for systemd-bootchart(1)
...
Mostly coppied from bootchart.conf(5)
2013-02-13 08:57:15 -05:00