summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* systemctl: align cgroups to 'n' in 'name='Zbigniew Jędrzejewski-Szmek2013-04-05
| | | | Also drop ':' in repeated Docs lines.
* sd-id128: check that the kernel is feeding us proper dataZbigniew Jędrzejewski-Szmek2013-04-05
| | | | | | The characters are already checked, so we show that we don't trust the kernel. Make sure we don't overrun the buffer too.
* udevadm-hwdb: avoid leak in error pathZbigniew Jędrzejewski-Szmek2013-04-04
|
* efivars: un-leak a few stringsZbigniew Jędrzejewski-Szmek2013-04-04
|
* timedated: fix a few memory leaksZbigniew Jędrzejewski-Szmek2013-04-04
| | | | Contents of /etc/adjtime and more.
* bus: add convenience functions for constructing and sending method ↵Lennart Poettering2013-04-05
| | | | calls/signals in one call
* bus: properly detect and handle if a callback is installed/removed from ↵Lennart Poettering2013-04-05
| | | | within a callback
* bus: don't allow recursive invocation of sd_bus_process()Lennart Poettering2013-04-05
|
* update TODOLennart Poettering2013-04-05
|
* localectl: add support for listing X11 keymap informationLennart Poettering2013-04-05
|
* journal: add sd_journal_get_timeout() call to public APILennart Poettering2013-04-04
| | | | | Let's do the wake-up logic on NFS internally, making things simpler for users.
* login: add sd_login_monitor_get_timeout() public api callLennart Poettering2013-04-04
| | | | | We don't need this right now, but we should keep our options open, in case we need more than just an fd for waking up.
* update TODOLennart Poettering2013-04-04
|
* test-bus-marshal.c: do not call g_type_init() for modern glib versionsHarald Hoyer2013-04-04
|
* cryptsetup-generator: add JobTimeoutSec=0 for the decrypted crypt devicesHarald Hoyer2013-04-04
| | | | | | | | | | | | | | | | The password query for a crypto device currently times out after 90s, which is too short to grab a cup of coffee when a machine boots up. The resulting decrypted device /dev/mapper/luks-<uuid> might not be a mountpoint (but part of a LVM PV or raid array) and therefore the timeout cannot be controlled by the settings in /etc/fstab. For this reason this device should not carry its own timeout. Also the encrypted device /dev/disk/by-*/* already has a timeout and additionally the timeout for the password query is set in /etc/crypttab. This patch disables the timeout of the resulting decrypted devices by creating <device-unit>.d/50-job-timeout-sec-0.conf files with "JobTimeoutSec=0".
* login: add new public API call sd_login_monitor_get_events() to get poll() ↵Lennart Poettering2013-04-04
| | | | | | | flags to wait for We should keep our options open, so that we can watch for POLLOUT later on if we wish to. CUrrently this call will always return POLLIN however.
* journal: add public API call sd_journal_get_events()Lennart Poettering2013-04-04
| | | | | | | | | This function should be used when filling in "struct pollfd"'s .events field for watching the journal. It will always return POLLIN for now, but we should keep our options open to change this later on. This mimics libsystemd-bus' sd_bus_get_events() call with the same purpose.
* util: tweak format_timespan() a bitLennart Poettering2013-04-04
| | | | | Make sure to always print out at least one valid component instead of falling back early to 0.
* util: add a bit of syntactic sugar to run short code fragments with a ↵Lennart Poettering2013-04-04
| | | | different umask
* util: make time formatting a bit smarterLennart Poettering2013-04-04
| | | | | | | | | | | Instead of outputting "5h 55s 50ms 3us" we'll now output "5h 55.050003s". Also, while outputting the accuracy is configurable. Basically we now try use "dot notation" for all time values > 1min. For >= 1s we use 's' as unit, otherwise for >= 1ms we use 'ms' as unit, and finally 'us'. This should give reasonably values in most cases.
* update TODOLennart Poettering2013-04-03
|
* time: add suppot for fractional time specificationsLennart Poettering2013-04-03
| | | | | We can now parse "0.5s" as the same as "500ms". In fact, we can parse "3.45years" correctly, too, and any other unit and fraction length.
* build-sys: "link" libsystemd-id128 against libsd-daemon-internalZbigniew Jędrzejewski-Szmek2013-04-03
| | | | | | | | | | | | | 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.
* hostnamectl: if somebody invokes 'hostnamectl set-hostname' with a valid ↵Lennart Poettering2013-04-03
| | | | | | | | | | | | 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.
* fileio: don't check for errors more often than really necessaryLennart Poettering2013-04-03
|
* fileio: write proper env var write-out codeLennart Poettering2013-04-03
| | | | | | | | | 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.
* shared: rework env file readerLennart Poettering2013-04-03
| | | | | | 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.
* util: rename parse_usec() to parse_sec() sinds the default unit is secondsLennart Poettering2013-04-03
| | | | | | | | 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.
* util: rename write_one_line_file() to write_string_file()Lennart Poettering2013-04-03
| | | | | You can write much more than just one line with this call (and we frequently do), so let's correct the naming.
* core/killall.c: prevent segfault and initialize pidsHarald Hoyer2013-04-03
|
* cgtop: add % as key to toggle time/percentageZbigniew Jędrzejewski-Szmek2013-04-02
|
* cgtop: optionally show CPU usage as time and become stdout sensitiveUmut Tezduyar2013-04-02
|
* nss-myhostname: do not use _cleanup_Zbigniew Jędrzejewski-Szmek2013-04-02
| | | | | | | | | | 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 d73c3269c.
* update TODOLennart Poettering2013-04-02
|
* macro: add macro for precisely determining length of decimal string ↵Lennart Poettering2013-04-02
| | | | formatting of a numeric type
* util: add a bit of syntactic sugar for saving/restoring errnoLennart Poettering2013-04-02
|
* Replace s/Dropin/DropIn/Zbigniew Jędrzejewski-Szmek2013-04-02
|
* Introspect and monitor dropin configurationOleksii Shevchuk2013-04-01
|
* shared/cgroup-show: fix leak of "pid"Zbigniew Jędrzejewski-Szmek2013-04-01
|
* systemctl: align all status fields to common columnZbigniew Jędrzejewski-Szmek2013-04-01
| | | | | | | 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
* Add Listen* to dbus propertiesOleksii Shevchuk2013-04-01
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.]
* Do no isolate in case of emergency or severe problemsDr. Tilmann Bubeck2013-04-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Always use our own MAX/MIN definitionsCristian Rodríguez2013-04-01
| | | | | | | | | | | | | | | | | | 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.]
* update TODOLennart Poettering2013-04-02
|
* shutdown: correctly wait for processes we killed in the killall spreeLennart Poettering2013-04-02
| | | | | | | | | | | | | | | | | 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.
* cryptsetup: add RequiresMountsFor for keyfileThomas Weißschuh2013-04-01
| | | | | | | | 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.
* cryptsetup: RequiresMountsFor if source is a fileThomas Weißschuh2013-04-01
| | | | | Fixes: https://bugzilla.novell.com/show_bug.cgi?id=730496 https://bugs.freedesktop.org/show_bug.cgi?id=60821
* core/socket: log errors when starting socket for this socketZbigniew Jędrzejewski-Szmek2013-04-01
| | | | | | | 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.
* Add AllowIsolate=yes to snapshotsOleksii Shevchuk2013-04-01
|
* stdio-bridge: rework stdio bridge to use libsystemd-busLennart Poettering2013-04-01
|