summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2013-11-16Fix RemainAfterExit services keeping a hold on consoleOlivier Brunel
When a service exits succesfully and has RemainAfterExit set, its hold on the console (in m->n_on_console) wasn't released since the unit state didn't change.
2013-11-15random-seed: improve debugging messages a bitZbigniew Jędrzejewski-Szmek
2013-11-15fstab-generator: use RequiresOverridable for fsck unitsZbigniew Jędrzejewski-Szmek
This allows the user to disable fsck's by masking. If fsck fails, emergency target is started, the user might mount the unit using mount and disable fsck by masking the unit. In this case, .mount will be active because the mount is detect through /proc/self/mountinfo, but systemd-fsck@.service will still be in failed mode. This results in a funny situation where $ systemctl show -p ActiveState local-fs.target yyy.mount ActiveState=active ActiveState=active $ sudo systemctl start local-fs.target [sudo] password for test: Failed to start local-fs.target: Unit systemd-fsck@xxx.service is masked.
2013-11-15core: some more _cleanup_free_Zbigniew Jędrzejewski-Szmek
2013-11-15fsck,fstab-generator: be lenient about missing fsck.<type>Zbigniew Jędrzejewski-Szmek
If fstab contains 1 for passno, treat this as an error, but only warn briefly. If fstab doesn't contain this information, don't complain at all. Patch is complicated a bit by the fact that we might have the fstype specified in fstab or on /proc/cmdline, in which case we can check if we have the appropriate fsck tool, or not specified, or specified as auto, in which case we have to look and check the type of the filesystem ourselves. It cannot be done before the device appears, so it is too early in the generator phase, and it must be done directly in fsck service.
2013-11-15fsck: modernizationZbigniew Jędrzejewski-Szmek
2013-11-14rtnl: add event loop integrationTom Gundersen
2013-11-14bus: typoTom Gundersen
Fix a couple of 'void' that should have been 'sd_bus'.
2013-11-14loopback-setup: move to rtnlTom Gundersen
This should be equivalent to the old behavior.
2013-11-14rtnl: add call_async and call_async_cancelTom Gundersen
They work in the same way as the sd-bus equivalents.
2013-11-13Fix possible lack of status messages on shutdown/rebootOlivier Brunel
Since 31a7eb86 the output on console can be disabled to avoid colliding with gettys. However, it could also lead to a lack of messages during shutdown/reboot.
2013-11-13Only disable output on console during boot if neededOlivier Brunel
If there are no more jobs on console, no need/we shouldn't disable output.
2013-11-13Resolve /dev/console to the active tty instead of just "tty0"Olivier Brunel
When resolving /dev/console one would often get "tty0" meaning the active VT. Resolving to the actual tty (e.g. "tty1") will notably help on boot when determining whether or not PID1 can output to the console.
2013-11-13journal: timestamp support on console messagesUmut Tezduyar Lindskog
journald mimics the kernel here: timestamps will be printed if /sys/module/printk/parameters/time contains "Y".
2013-11-13rtnl: start adding support for asynchronous messagingTom Gundersen
Similarly to sd-bus, add: sd_rtnl_wait sd_rtnl_process sd_rtnl_send and adapt sd_rtnl_call accordingly.
2013-11-13rtnl: rename rtnl_bus_send_with_reply_and_block() to rtnl_bus_call()Tom Gundersen
Follow the equivalent rename in sd-bus to stay as similar as possible.
2013-11-13logind: create the session fifo before saving the session fileThomas Hindoe Paaboel Andersen
If the session fifo is not created the session state written to the session file is "closing". This caused the lock screen in gnome-shell to go into a loop trying to find the active session. The problem was introduced in the sd-bus port in cc3773810855956bad92337cee8fa193584ab62e Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=71525
2013-11-14activate: fix crash when -s is passedMantas Mikulėnas
getopt_long() was told to accept -s which was never implemented.
2013-11-14activate: mention -E in the help textMantas Mikulėnas
2013-11-14systemctl: honor --no-legend in 'list-jobs'Mantas Mikulėnas
2013-11-13udev: declare some symbols staticKay Sievers
2013-11-12systemd-python: fix booted() and add two functions to docsZbigniew Jędrzejewski-Szmek
For some reason sphinx doesn't want to show inherited C functions.
2013-11-12build-sys: add a link test for exported symbolsZbigniew Jędrzejewski-Szmek
I know that this is a pretty big net to catch some small fish, but we *do* regularly forget to properly export symbols that were supposed to be exported. This time sd_bus_get_current and some renamed symbols are caught.
2013-11-12uaccess: Add new DRM render nodesKristian Høgsberg
2013-11-12udev: declare some symbols staticKay Sievers
2013-11-12bus: test-bus-objects - add missing headerKay Sievers
2013-11-12bus: add missing dump.[ch]Lennart Poettering
2013-11-12bus: beautify bus_message_dump() output a bitLennart Poettering
2013-11-12busctl: show machine name of all registered namesLennart Poettering
2013-11-12bus: set no_auto_start flag for GetMachineId calls, so that we don't ↵Lennart Poettering
auto-start if we want to know the machine of a bus service
2013-11-12bus: detect blocking message calls to our own connection and return ELOOP earlyLennart Poettering
2013-11-12bus: add api to control auto start message flagLennart Poettering
2013-11-12id128: introduce SD_ID128_STRING_MAX consant for sizing id128 stringsLennart Poettering
2013-11-12bus: export utf8 validator calls as pure functionsLennart Poettering
2013-11-12bus: introduce concept of a default bus for each thread and make use of it ↵Lennart Poettering
everywhere We want to emphasize bus connections as per-thread communication primitives, hence introduce a concept of a per-thread default bus, and make use of it everywhere.
2013-11-12bus: introduce concept of a "default" event loop per-thread and make use of ↵Lennart Poettering
it everywhere Try to emphasize a bit that there should be a mapping between event loops and threads, hence introduce a logic that there's one "default" event loop for each thread, that can be queried via "sd_event_default()".
2013-11-12test: fix minor memory leak in test-eventLennart Poettering
2013-11-12bus: rename sd_bus_send_with_reply_and_block() to sd_bus_call()Lennart Poettering
The call is one of the most important ones we expose, where we place major emphasis on. We should make sure to give it a short, memorable name.
2013-11-11systemctl: warning: ‘r’ may be used uninitialized in this functionKay Sievers
2013-11-11systemctl: avoid unitialized access when showing 0 timersZbigniew Jędrzejewski-Szmek
2013-11-11bus: add APIs for adding iovecs to messages as string or arraysLennart Poettering
2013-11-11systemctl: add new "list-timers" commandLennart Poettering
2013-11-11timer: consider (usec_t) -1 an invalid timestampLennart Poettering
2013-11-11timer: properly format relative timestamps in the futureLennart Poettering
2013-11-10bus: we really need to get rid of the :no-sender hackLennart Poettering
This is where a hack from PID 1 spilled into the client side. We need to get rid of this as soon as PID 1 is converted to libsystemd-bus.
2013-11-10bus: actually export sd_utf8_is_valid() and sd_ascii_is_valid()Lennart Poettering
2013-11-10bus: use ENXIO as error condition when trying to exit a container when we ↵Lennart Poettering
are not in any So far we used ENXIO whenever the user tried to read something from a function that didn't carry the right type, and hence use the same error here to indicate that what the user expected and what was in the message didn't match up.
2013-11-10analyze: plot the time spent setting up security modulesThomas Hindoe Paaboel Andersen
2013-11-10button: don't exit if we cannot handle a button pressLennart Poettering
2013-11-09bus: fix build with old glibcZbigniew Jędrzejewski-Szmek