- 03 Apr, 2013 8 commits
-
-
Zbigniew Jędrzejewski-Szmek authored
georgem> libsystemd-id128.so: undefined reference to `sd_listen_fds' In some toolchains (--as-needed not used or not working), the toolchain doesn't drop this dependency. It is introduced because sd-id128.so is linked against sd-shared.la, and some functions therein use libsystemd-daemon, but libsd-id128 doesn't use any of those functions. This results in no change in libsystemd-id128.so when the unused symbols are properly stripped.
-
Lennart Poettering authored
hostnamectl: if somebody invokes 'hostnamectl set-hostname' with a valid internet hostname unset the pretty name If people are unaware or uninterested in the concept of pretty host names, and simply invoke "hostnamectl set-hostname" for a valid internet host name, then use this as indication to unset the pretty host name and only set the static/dynamic one. This also allows fqdn, hence "hostnamectl set-hostname www.foobar.com" will just work if people really insist on using fqdns as hostnames.
-
Lennart Poettering authored
-
Lennart Poettering authored
This will properly escape all weird chars when writing env var files. With this in place we can now read and write environment files where the values contain arbitrary weird chars. This enables hostnamed and suchlike to finally properly save pretty host names with backlashes or quotes in them.
-
Lennart Poettering authored
Implement this with a proper state machine, so that newlines and escaped chars can appear in string assignments. This should bring the parser much closer to shell.
-
Lennart Poettering authored
Internally we store all time values in usec_t, however parse_usec() actually was used mostly to parse values in seconds (unless explicit units were specified to define a different unit). Hence, be clear about this and name the function about what we pass into it, not what we get out of it.
-
Lennart Poettering authored
You can write much more than just one line with this call (and we frequently do), so let's correct the naming.
-
Harald Hoyer authored
-
- 02 Apr, 2013 13 commits
-
-
Zbigniew Jędrzejewski-Szmek authored
-
Umut Tezduyar authored
-
Zbigniew Jędrzejewski-Szmek authored
mss-myhostname wasn't working because of underlinking. Instead of fixing the underlinking, just remove the use of _cleanup_ macros. It is impolite to use our utility functions in modules designed to be loaded by others. So cleanup macros which (at some point) call assert which calls log_assert_failed, should not be used. Revert this part of commit d73c3269.
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Zbigniew Jędrzejewski-Szmek authored
-
Oleksii Shevchuk authored
-
Zbigniew Jędrzejewski-Szmek authored
-
Zbigniew Jędrzejewski-Szmek authored
avahi-daemon.socket - Avahi mDNS/DNS-SD Stack Activation Socket Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.socket; enabled) Active: active (listening) since Mon 2013-04-01 09:02:44 EDT; 14h ago ListenStream: /var/run/avahi-daemon/socket
-
Oleksii Shevchuk authored
sockets.socket - Test Loaded: loaded (/home/alxchk/.config/systemd/user/sockets.socket; static) Active: inactive (dead) Listen: Stream: /tmp/stream1 Stream: @stream4 Stream: [::]:9999 Stream: 127.0.0.2:9996 Stream: [::1]:9996 Datagram: /tmp/stream2 Datagram: @stream5 Datagram: [::]:9998 Datagram: 127.0.0.2:9995 Datagram: [::1]:9995 SequentialPacket: @stream6 SequentialPacket: /tmp/stream3 FIFO: /tmp/fifo1 Special: /dev/input/event9 Netlink: kobject-uevent 0 MessageQueue: /msgqueue1 [zj: - minor cleanups, - free i.listen, - remove sorting, because the order or sockets matters.]
-
Dr. Tilmann Bubeck authored
This patch changes local-fs.target and systemd-fsck to not use "isolate" when going into emergency. This fixes https://bugzilla.redhat.com/show_bug.cgi?id=810722 The motivation is, that when something wents wrong, we should keep everything as it is, to let the user fix the problem. When isolating we stop a lot of services and therefore change the system heavily so that it gets harder for the user to fix. An example is a crypted partition. When the fsck in a crypted partition fails, it previously used "emergency/start/isolate" which stops cryptsetup. Therefore if the user tries to fsck e.g. /dev/mapper/luks-356c20ae-c7a2-4f1c-ae1d-1d290a91b691 as printed by the failing fsck, then it will not find this device (because it got closed). So please apply this patch to let the user see the failing situation. Thanks! [zj: removed dead isolate param from start_target().] https://bugs.freedesktop.org/show_bug.cgi?id=49463 https://bugzilla.redhat.com/show_bug.cgi?id=810722
-
Cristian Rodríguez authored
code in src/shared/macro.h only defined MAX/MIN in case they were not defined previously. however the MAX/MIN macros implemented in glibc are not of the "safe" kind but defined as: define MIN(a,b) (((a)<(b))?(a):(b)) define MAX(a,b) (((a)>(b))?(a):(b)) Avoid nasty side effects by using our own versions instead. Also fix the warnings derived from this change. [zj: - modify MAX3 macro to fix warning about _a shadowing _a, - do bootchart/svg.c too, - remove unused MIN3.]
-
- 01 Apr, 2013 15 commits
-
-
Lennart Poettering authored
-
Lennart Poettering authored
Previously we simply counted how many processes we killed and expected as many waitpid() calls to succeed. That however is incorrect to do. As we might kill processes that are not our immediate children, and as there might be left-over processes in the waitpid() queue from earlier the we might get more ore less waitpid() events that we expect. Hence: keep precise track of the processes we kill, remove the ones we get waitpid() for, and after each time we get SIGCHLD check if all others still exist. We use getpgid() to check if a PID still exists. This should fix issues with journald not setting journal files offline correctly on shutdown, because we'd too quickly proceed from SIGTERM to SIGKILL because some left-over process was in our waitpid() queue.
-
Thomas Weißschuh authored
This ensures that the keyfile is available during the opening of the encrypted device. Also dropped the explicit ordering Before=local-fs.target, as the containers are ordered implicitly by their content.
-
Zbigniew Jędrzejewski-Szmek authored
When showing an error like 'Socket service not loaded', the error won't show up in the status for the socket, unless it is marked as SYSTEMD_UNIT=*.socket. Marking it as SYSTEMD_UNIT=*.service, when the service is non-existent, is not useful.
-
Oleksii Shevchuk authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
As it turns out SCM_CREDENTIALS is not always supported on socketpair(), so let's also try SO_PEERCRED then.
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
This is useful so that we can speak D-Bus over a FIFO pair such as stdin+stdout.
-
- 31 Mar, 2013 4 commits
-
-
Zbigniew Jędrzejewski-Szmek authored
The ~80 chars per line part wasn't well received.
-
Zbigniew Jędrzejewski-Szmek authored
... Activating default unit: default.target Default target could not be isolated, starting instead: Operation refused, unit may not be isolated.
-
Zbigniew Jędrzejewski-Szmek authored
-
Zbigniew Jędrzejewski-Szmek authored
Sentence seemed to suggest that all three conditions must be true.
-