summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* util: upgrade default $TERM from vt102 to vt220 if we have no idea about the ↵Lennart Poettering2015-01-07
| | | | | | | | | | | | | | | | | connected terminal So far, if we had no knowledge about the correct $TERM we defaulted to v102, as a safe, conservative choice. However, the terminfo data for vt102 is not aware of pageup/pagedown, which makes "less" much harder work with than necessary. Setting vt220 allows them to work correctly. "vt220" should be a sufficiently safe choice too, given that xterm, gnome-terminal and the linux console all strive to implement vt220 as baseline, already to pass pageup/pagedown correctly to apps. Effectively, with this change "journalctl -e" run inside a "systemd-nspawn" terminal will now run a pager where pageup/pagedown works, which is quite an improvement of usability for containers.
* bus-util: fix error number output when waiting for jobLennart Poettering2015-01-07
|
* service: automatically create After= dependency from services to their ↵Lennart Poettering2015-01-07
| | | | .busname units, if BusName= is set
* conf-parse: don't accept invalid bus names as BusName= arguments in service ↵Lennart Poettering2015-01-07
| | | | units
* conf-parse: make syntax logging functions behave more like other log functonsLennart Poettering2015-01-07
| | | | | | | In particular, don't patch the error number to EINVAL if 0, and don't negate it. (Also, add do {} while (false) around multi-line macro)
* busctl: exit cleanly when the bus connection is severedLennart Poettering2015-01-07
|
* sd-bus: when we synthesize messages, initialize timestamps ourselvesLennart Poettering2015-01-07
|
* sd-bus: unify how we set the sender of synthetic messagesLennart Poettering2015-01-07
|
* sd-bus: make use of the newly added timestamps on kdbus kernel messagesLennart Poettering2015-01-07
|
* sd-bus: always catch name requests for the special names ↵Lennart Poettering2015-01-07
| | | | "org.freedesktop.DBus" and "org.freedesktop.DBus.Local" and refuse them
* machinectl: prettify "machinectl list" outputLennart Poettering2015-01-07
|
* sysv-generator: initialize units before use to ensure correct orderingMichael Biebl2015-01-07
| | | | | | | | | | | | | | The original loop called fix_order() on each service immediately after loading it, but fix_order() would reference other units which were not loaded yet. This resulted in bogus and unnecessary orderings based on the static start priorities. Therefore call load_sysv() for every init script when traversing them in enumerate_sysv(). This ensures that all units are loaded when fix_order() is called. Bug-Debian: https://bugs.debian.org/771118
* ptyfwd: simplify how we handle vhangups a bitLennart Poettering2015-01-07
|
* btrfs-util: rework how we iterate through the results of the TREE_SEARCH resultsLennart Poettering2015-01-07
| | | | | Let's introduce some syntactic sugar with iteration macros, and add correct key increment calls.
* sysv-generator: handle Provides: for non-virtual facility namesMichael Biebl2015-01-07
| | | | | | | | | | | | | | | | | | | | The list of provided facility names as specified via Provides: in the LSB header was originally implemented by adding those facilities to the Names= property via unit_add_name(). In commit 95ed3294c632f5606327149f10cef1eb34422862 the internal SysV support was replaced by a generator and support for parsing the Names= option had been removed from the unit file parsing in v186. As a result, Provides: for non-virtual facility was dropped when introducing the sysv-generator. Since quite a few SysV init scripts still use that functionality (at least in distros like Debian which have a large body of SysV init scripts), add back support by making those facility names available via symlinks to the unit filename to ensure correct orderings between SysV init scripts which use those facility names. Bug-Debian: https://bugs.debian.org/774335
* machinectl: make sure that "machinectl login" exits immediately when the ↵Lennart Poettering2015-01-07
| | | | machine it is connected to dies
* util: make use of kcmp() to compare fds, if it is availableLennart Poettering2015-01-07
|
* util: don't fail recursive bind mounting if we cannot read the mount flags ↵Lennart Poettering2015-01-07
| | | | from an obstructed mounted
* core: implement serialization/deserialization of fd store elementsLennart Poettering2015-01-07
|
* tmpfiles: make gcc shut upLennart Poettering2015-01-06
|
* journal: consider file deletion errors a reason for rotationLennart Poettering2015-01-06
|
* journald: whenever we rotate a file, btrfs defrag itLennart Poettering2015-01-06
| | | | | | | Our write pattern is quite awful for CoW file systems (btrfs...), as we keep updating file parts in the beginning of the file. This results in fragmented journal files. Hence: when rotating files, defragment them, since at that point we know that no further write accesses will be made.
* tmpfiles: finish with EXIT_FAILURE if anything failedZbigniew Jędrzejewski-Szmek2015-01-06
| | | | Return value is successful only if everything succeeded.
* tree-wide: remove unnecessary LOG_PRIZbigniew Jędrzejewski-Szmek2015-01-06
| | | | | LOG_DEBUG is already a log level, there is no need to use LOG_PRI which is for filtering out the facility.
* journal-upload: enable curl debug output conditionallyZbigniew Jędrzejewski-Szmek2015-01-06
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=86464
* build-sys: add two more missing makefile linksLennart Poettering2015-01-06
|
* machined: simplificationLennart Poettering2015-01-06
|
* journald: allow restarting journald without losing stream connectionsLennart Poettering2015-01-06
| | | | | | Making use of the fd storage capability of the previous commit, allow restarting journald by serilizing stream state to /run, and pushing open fds to PID 1.
* core: add new logic for services to store file descriptors in PID 1Lennart Poettering2015-01-06
| | | | | | | | | | | | | | With this change it is possible to send file descriptors to PID 1, via sd_pid_notify_with_fds() which PID 1 will store individually for each service, and pass via the usual fd passing logic on next invocation. This is useful for enable daemon reload schemes where daemons serialize their state to /run, push their fds into PID 1 and terminate, restoring their state on next start from the data in /run and passed in from PID 1. The fds are kept by PID 1 as long as no POLLHUP or POLLERR is seen on them, and the service they belong to are either not dead or failed, or have a job queued.
* cgroup: memory limits on / are not supportedZbigniew Jędrzejewski-Szmek2015-01-05
|
* cgroup: fix error messageZbigniew Jędrzejewski-Szmek2015-01-05
| | | | systemd[1]: Failed to set memory.limit_in_bytes on : Invalid argument
* journal: call connect() with dropped privilegesZbigniew Jędrzejewski-Szmek2015-01-05
| | | | | | | | | | | When systemd starts a service, it first opened /run/systemd/journal/stdout socket, and only later switched to the right user.group (if they are specified). Later on, journald looked at the credentials, and saw root.root, because credentials are stored at the time the socket is opened. As a result, all messages passed over _TRANSPORT=stdout were logged with _UID=0, _GID=0. Drop real uid and gid temporarily to fix the issue.
* core: rework counting of running jobsLennart Poettering2015-01-05
| | | | | | | | | | | | | Let's unify the code that counts the running jobs a bit, in order to make sure we are less likely to miss one. This is related to this bug: https://bugs.freedesktop.org/show_bug.cgi?id=87349 However, it probably won't fix it fully, and I cannot reproduce the issue. The change also adds an explicit assert change when the counter is off.
* path-lookup, systemctl: export lookup_paths_init_from_scope() from ↵Ivan Shapovalov2015-01-05
| | | | shared/install.c and use it
* tmpfiles: fix 'D' linesLennart Poettering2015-01-05
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=87953
* nss-myhostname: always will in canonical hostname field when resolving ↵Lennart Poettering2015-01-05
| | | | | | addresses to hostnames https://bugs.freedesktop.org/show_bug.cgi?id=87634
* bus-proxyd: don't allow to acquire org.freedesktop.DBus nameLukasz Skalski2015-01-05
|
* core: fix typo in log messageMichael Biebl2015-01-05
|
* machinectl: remove spurious newlineLennart Poettering2015-01-05
|
* sd-bus: sync kdbus.hDaniel Mack2015-01-05
| | | | | | | | | Catch up with latest changes in kdbus.ko: * Signals can be sent as unicast now, hence they need to be marked as such with the KDBUS_MSG_SIGNAL in the message flags. * Follow ioctl number change for KDBUS_CMD_FREE
* util: Do not clear parent mount flags when setting up namespacesTopi Miettinen2015-01-05
| | | | | | | | | When setting up a namespace, mount flags like noexec, nosuid and nodev are cleared, so the mounts always have exec, suid and dev flags enabled. Copy source directory mount flags to target mount when remounting the bind mounts.
* udevadm,..: make --help output of udev tools more like the output of the ↵Lennart Poettering2015-01-05
| | | | various other tools
* fstab-generator: use more appropriate checks for swap and device availabilityLennart Poettering2015-01-05
| | | | | | | | | | | We always should use the same checks when deciding whether swap support and mounting of devices is supported. Hence, let's make fstab-generator's logic more similar to the usual logic we follow: a) Look for /proc/swaps and no container support before activating swaps. b) Look for /sys being writable befire supporting device mounts.
* libsystemd-network: fix typo in lldpTorstein Husebø2015-01-05
|
* util: Fix signedness error in lines(), match implementationsColin Walters2015-01-05
| | | | | | | | | | Regression introduced by ed757c0cb03eef50e8d9aeb4682401c3e9486f0b Mirror the implementation of columns(), since the fd_columns() functions returns a negative integer for errors. Also fix columns() to return the unsigned variable instead of the signed intermediary (they're the same, but better to be explicit).
* journald: reuse IOVEC_TOTAL_SIZE() macros where possibleLennart Poettering2015-01-05
|
* journald: when we detect the journal file we are about to write to has been ↵Lennart Poettering2015-01-05
| | | | | | deleted, rotate https://bugzilla.redhat.com/show_bug.cgi?id=1171719
* systemctl: properly iterate through service array when dispatching to sysvLennart Poettering2015-01-05
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1175734
* journald: add some additional checks before we divide by values read from ↵Lennart Poettering2015-01-05
| | | | | | | | journal file headers Since the file headers might be replaced by zeroed pages now due to sigbus we should make sure we don't end up dividing by zero because we don't check values read from journal file headers for changes.
* journalctl: static variables immediately configured via command line ↵Lennart Poettering2015-01-05
| | | | arguments should be prefixed with "arg_"