summaryrefslogtreecommitdiff
path: root/src/initctl
Commit message (Collapse)AuthorAgeFilesLines
...
* initctl: don't eat up error codeLennart Poettering2014-08-111-1/+1
|
* core: make sure PrivateDevices= makes /dev/log availableLennart Poettering2014-06-041-1/+2
| | | | | | | Now that we moved the actual syslog socket to /run/systemd/journal/dev-log we can actually make /dev/log a symlink to it, when PrivateDevices= is used, thus making syslog available to services using PrivateDevices=.
* Remove unnecessary casts in printfsZbigniew Jędrzejewski-Szmek2014-05-151-2/+2
| | | | No functional change expected :)
* util: replace close_nointr_nofail() by a more useful safe_close()Lennart Poettering2014-03-181-3/+2
| | | | | | | | | | | | | | | safe_close() automatically becomes a NOP when a negative fd is passed, and returns -1 unconditionally. This makes it easy to write lines like this: fd = safe_close(fd); Which will close an fd if it is open, and reset the fd variable correctly. By making use of this new scheme we can drop a > 200 lines of code that was required to test for non-negative fds or to reset the closed fd variable afterwards.
* trivial coding style clean upsThomas Hindoe Paaboel Andersen2013-12-031-1/+1
| | | | | | | | | | | | | | - Add space between if/for and the opening parentheses - Place the opening brace on same line as the function (not for udev) From the CODING_STYLE Try to use this: void foo() { } instead of this: void foo() { }
* tree-wide usage of %m specifier instead of strerror(errno)Daniel Buch2013-11-261-7/+5
| | | | | | Also for log_error() except where a specific error is specified e.g. errno ? strerror(errno) : "Some user specified message"
* bus: move ssh support into public API of libsystem-busLennart Poettering2013-10-301-1/+1
|
* initctl: port to sd-busTom Gundersen2013-10-181-47/+27
|
* list: make our list macros a bit easier to use by not requring type spec on ↵Lennart Poettering2013-10-141-2/+2
| | | | | | | each invocation We can determine the list entry type via the typeof() gcc construct, and so we should to make the macros much shorter to use.
* journald: be a bit more verbose when vacuumingZbigniew Jędrzejewski-Szmek2013-09-101-4/+6
| | | | | | | | Vacuuming behaviour is a bit confusing, and/or we have some bugs, so those additional messages should help to find out what's going on. Also, rotation of journal files shouldn't be happening too often, so the level of the messages is bumped to info, so that they'll be logged under normal operation.
* initctl: use irreversible jobs when switching runlevelsZbigniew Jędrzejewski-Szmek2013-07-241-1/+1
| | | | Spotted by uau in #systemd.
* initctl: fix return from unitialized memory in error pathZbigniew Jędrzejewski-Szmek2013-03-211-7/+15
| | | | | | | src/initctl/initctl.c: In function 'server_init': src/initctl/initctl.c:282:13: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized] int r; ^
* build-sys: add stub makefiles to all subdirs to ease development with emacsLennart Poettering2012-04-131-0/+1
|
* move all tools to subdirsKay Sievers2012-04-121-0/+451