summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2015-04-29sd-bus: allow passing NULL as bus parameter to sd_bus_send()Lennart Poettering6-19/+31
If NULL is specified for the bus it is now automatically derived from the passed in message. This commit also changes a number of invocations of sd_bus_send() to make use of this.
2015-04-29sd-bus: drop bus parameter from message callback prototypeLennart Poettering40-556/+456
This should simplify the prototype a bit. The bus parameter is redundant in most cases, and in the few where it matters it can be derived from the message via sd_bus_message_get_bus().
2015-04-29test: rename test-bus-kernel-benchmark to test-bus-benchmarkTom Gundersen1-0/+0
This can now benchmark more than just kdbus.
2015-04-29core: annotate event sourcesTom Gundersen13-8/+93
2015-04-29sd-bus: benchmark - also support testing non-kdbus transportsTom Gundersen1-30/+93
We introduce two news types of benchmarks in chart-mode: - 'legacy' connects using the session bus - 'direct' connects using a peer-to-peer socket We should probably also introduce a mode for testing the dbus1-kdbus proxy.
2015-04-29libudev: monitor - fix typo in log messageTom Gundersen1-1/+1
2015-04-28machined: make PropertiesChanged match more strictLennart Poettering1-1/+2
2015-04-28machined: make sure to track machine unit states properlyLennart Poettering3-15/+62
If a unit is stopped for a moment, we need to invalidate our knowledge of it, otherwise we might be confused by automatic restarts This makes reboots for nspawn containers run as service work correctly. https://bugs.freedesktop.org/show_bug.cgi?id=87428
2015-04-28bus-util: drop redundant bus argument from bus_message_map_all_properties() ↵Lennart Poettering3-33/+29
and related calls
2015-04-28nspawn: when run as a service, don't ask machined for terminatin of ourselvesLennart Poettering1-0/+5
2015-04-28nspawn: make sure we install the device policy if nspawn is run as unit as ↵Lennart Poettering1-0/+4
on the command line
2015-04-28service: make restart logic a bit easier to understandLennart Poettering1-11/+45
2015-04-28exit-status: introduce common exit_status_set_test() call for testing exit ↵Lennart Poettering3-4/+17
status set membership
2015-04-28scope: use correct enum typeThomas Hindoe Paaboel Andersen1-1/+1
2015-04-28fsck: remove fsckd again, but keep the door open for external replacementLennart Poettering4-770/+165
For a longer discussion see this: http://lists.freedesktop.org/archives/systemd-devel/2015-April/030175.html This introduces /run/systemd/fsck.progress as a simply AF_UNIX/SOCK_STREAM socket. If it exists and is connectable we'll connect fsck's -c switch with it. If external programs want to get progress data they should hence listen on this socket and will get all they need via that socket. To get information about the connecting fsck client they should use SO_PEERCRED. Unless /run/systemd/fsck.progress is around and connectable this change reverts back to v219 behaviour where we'd forward fsck output to /dev/console on our own.
2015-04-28fsck: minor improvementsLennart Poettering1-9/+16
Among other smaller fixes, explicitly check if we are invoked on a block device before making use of st.st_rdev.
2015-04-28fsck: parse kernel cmdline booleans the same ways as the restLennart Poettering1-7/+13
2015-04-28unit: Drop unused variablesMartin Pitt1-2/+0
src/core/unit.c: In function 'unit_coldplug': src/core/unit.c:2884:18: warning: unused variable 'i' [-Wunused-variable] Iterator i; ^ src/core/unit.c:2883:15: warning: unused variable 'other' [-Wunused-variable] Unit *other; ^
2015-04-28run: by default, wait until the transient unit finished start-upLennart Poettering1-4/+32
Make this blocking behaviour optional with --no-block, similar to systemctl's switch of this name.
2015-04-28run: synchronously wait until the scope unit we create is startedLennart Poettering3-7/+46
Otherwise it might happen that by the time PID 1 adds our process to the scope unit the process might already have died, if the process is short-running (such as an invocation to /bin/true). https://bugs.freedesktop.org/show_bug.cgi?id=86520
2015-04-28core: when we cannot add PID to a scope cgroup, log about itLennart Poettering2-2/+7
Also, place the scope unit in failed state.
2015-04-28bus-util: print correct warnings for units that fail but for which we have a ↵Lennart Poettering1-14/+20
NULL result only
2015-04-27core: coldplug all units which participate in jobs during coldpluggingIvan Shapovalov2-8/+7
This is yet another attempt to fix coldplugging order (more especially, the problem which happens when one creates a job during coldplugging and it references a not-yet-coldplugged unit). Now we forcibly coldplug all units which participate in jobs. This is a superset of previously implemented handling of the UNIT_TRIGGERS dependencies, so that handling is removed. http://lists.freedesktop.org/archives/systemd-devel/2015-April/031212.html https://bugs.freedesktop.org/show_bug.cgi?id=88401 (once again)
2015-04-27update-done: ignore nanosecond file timestamp components, they are not reliableLennart Poettering1-3/+9
https://bugs.freedesktop.org/show_bug.cgi?id=90192
2015-04-27update-done: minor simplificationLennart Poettering1-7/+4
2015-04-26path-util: fix fstat fallback in fd_is_mount_pointThomas Hindoe Paaboel Andersen1-1/+1
2015-04-26sysv-generator: avoid freeing uninitialized variableThomas Hindoe Paaboel Andersen1-1/+1
Would happen if lookup_paths_init returns an error.
2015-04-26libudev: monitor - clarify log messagesTom Gundersen1-2/+2
2015-04-26sd-device: don't retry loading uevent/db files more than onceTom Gundersen1-4/+4
If for whatever reason there was nothing to load or loading failed, don't keep trying.
2015-04-26sd-device: don't complain if the uevent file is missingTom Gundersen1-0/+3
Only 'real' devices are required to have an uevent file.
2015-04-24bootchart: kill newline characters from log_error_errno() callsDaniel Mack2-3/+3
2015-04-24systemctl: kill newline characters from log_error_errno() callsDaniel Mack1-2/+2
log_error_errno() already adds a newline, so drop them.
2015-04-24logind: kill newline characters from log_error_errno() callsDaniel Mack2-14/+14
log_error_errno() already adds a newline, so drop them.
2015-04-24udevd: worker - log if worker result cannot be sentTom Gundersen1-4/+7
If the main daemon is not notified about a worker finishing an event the refcounting of the worker struct will be wrong, and we will lose track of the number of children we have to wait for. This should not happen, but if it does we better complain loudly about it. Worst case udev will wait for 30 seconsd at shutdown waiting for nonexistent workers.
2015-04-24udevd: worker - warn if unknown worker returnsTom Gundersen1-0/+6
2015-04-24udevd: worker - let the kernel attach the sender pidTom Gundersen1-7/+45
No need to include this explicitly, just use SCM_CREDENTIALS.
2015-04-24sysctl: minor simplificationsLennart Poettering1-17/+9
2015-04-24sysctl: don't propagate ENOENT sysctl optionsLennart Poettering1-7/+7
We shouldn't fail the sysctl service if an option is missing. Previously the warning about this was already downgraded to LOG_DEBUG, but we really shouldn't propagate such errors either.
2015-04-24core: minor simplificationLennart Poettering1-5/+3
2015-04-24udevd: don't unref worker objects on SIGSTOP/SIGCONTTom Gundersen1-0/+2
We should not be receiving these anyway, but let's be correct.
2015-04-24udevd: warn if we receive SIGCHLD from untracked workerTom Gundersen1-0/+6
2015-04-24udevd: improve logging in SIGCHLD handlingTom Gundersen1-9/+9
Remove some redundant logging, and reduce the log-level in most cases. The only case that is really critical is if a worker failed while hanlding an event, so keep that at error level.
2015-04-24sd-bus: teach bus_print_property() how to print SD_BUS_TYPE_INT64Daniel Mack1-0/+12
2015-04-24shutdownd: kill the old implementationDaniel Mack3-578/+0
Not that all functionality has been ported over to logind, the old implementation can be removed. There goes one of the oldest parts of the systemd code base.
2015-04-24systemctl: talk to logind for scheduled shutdownsDaniel Mack1-57/+103
Drop the code which communicates with shutdownd via its private socket, and use the functionality in logind instead. The code pathes which talk to logind have to create their own ad-hoc bus connection because by default, systemctl connects to systemd's private socket.
2015-04-24logind: add support for /run/nologin and /run/systemd/shutdown/scheduledDaniel Mack3-0/+94
Port over more code from shutdownd and teach logind to write /run/nologin at least 5 minutes before the system is going down, and /run/systemd/shutdown/scheduled when a shutdown is scheduled.
2015-04-24logind: add code for UTMP wall messagesDaniel Mack4-0/+234
Add a timer to print UTMP wall messages so that it repeatedly informs users about a scheduled shutdown: * every 1 minute with less than 10 minutes to go * every 15 minutes with less than 60 minutes to go * every 30 minutes with less than 180 minutes (3 hours) to go * every 60 minutes if more than that to go This functionality only active if the .EnableWallMessages DBus property is set to true. Also, a custom string can be added to the wall message, set through the WallMessagePrefix property.
2015-04-24shared/utmp-wtmp: add parameter for origin tty and callback userdataDaniel Mack6-14/+32
Instead of looking up the tty from STDIN, let utmp_wall() take an argument to specify an origin tty for the wall message. Only if that argument is NULL do the STDIN lookup. Also add an void *userdata argument that is handed back to the callback function.
2015-04-24logind: add .ScheduleShutdown and .CancelScheduledShutdown methodsDaniel Mack3-0/+144
Add a method called ScheduleShutdown in org.freedesktop.login1.Manager which adds a timer to shut down the system at a later point in time. The first argument holds the type of the schedule that is about to happen, and must be one of 'reboot', 'halt' or 'poweroff'. The second argument specifies the absolute time, based on CLOCK_REALTIME in nanoseconds, at which the the operation should be executed. To cancel a previously scheduled shutdown, the CancelScheduledShutdown() can be called, which returns a bool, indicating whether a scheduled timeout was cancelled. Also add a new property called ScheduledShutdown which returns the equivalent to what was passed in via ScheduleShutdown, as '(st)' type.
2015-04-24logind: factor out polkit checksDaniel Mack1-28/+50
Factor out the code to ask polkit for authorization from method_do_shutdown_or_sleep() into an own function called verify_shutdown_creds(). This is needed in order to also use the same checks when shutdown operations are scheduled. For that, it's also necessary to allow NULL values for that action{,_multiple_sessions,_ignore_inhibit) arguments, which will suppress the call if no action string is passed.