Dave Reisner [Sat, 16 Nov 2013 03:44:15 +0000 (22:44 -0500)]
ycm_extra_conf: include src/systemd for headers
Dave Reisner [Sat, 16 Nov 2013 03:38:12 +0000 (22:38 -0500)]
build: use printf to generate symbol tests
echo is basically unportable, so use printf instead.
Tom Gundersen [Fri, 15 Nov 2013 12:47:12 +0000 (13:47 +0100)]
build-sys: don't mix dynamic and static libs
Tom Gundersen [Thu, 14 Nov 2013 18:23:39 +0000 (19:23 +0100)]
rtnl: add event loop integration
Tom Gundersen [Thu, 14 Nov 2013 21:19:19 +0000 (22:19 +0100)]
bus: typo
Fix a couple of 'void' that should have been 'sd_bus'.
Tom Gundersen [Tue, 29 Oct 2013 22:50:07 +0000 (23:50 +0100)]
loopback-setup: move to rtnl
This should be equivalent to the old behavior.
Tom Gundersen [Wed, 13 Nov 2013 22:18:20 +0000 (23:18 +0100)]
rtnl: add call_async and call_async_cancel
They work in the same way as the sd-bus equivalents.
Zbigniew Jędrzejewski-Szmek [Thu, 14 Nov 2013 05:08:36 +0000 (00:08 -0500)]
Update TODO
Olivier Brunel [Fri, 20 Sep 2013 20:18:30 +0000 (22:18 +0200)]
Fix possible lack of status messages on shutdown/reboot
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.
Olivier Brunel [Fri, 20 Sep 2013 20:18:29 +0000 (22:18 +0200)]
Only disable output on console during boot if needed
If there are no more jobs on console, no need/we shouldn't disable output.
Olivier Brunel [Fri, 20 Sep 2013 20:18:28 +0000 (22:18 +0200)]
Resolve /dev/console to the active tty instead of just "tty0"
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.
Marko Myllynen [Thu, 14 Nov 2013 04:02:23 +0000 (23:02 -0500)]
zsh-completion: add bootctl
Marko Myllynen [Wed, 13 Nov 2013 09:06:13 +0000 (11:06 +0200)]
man: add bootctl(8)
https://bugzilla.redhat.com/show_bug.cgi?id=1014303
Umut Tezduyar Lindskog [Wed, 13 Nov 2013 14:27:19 +0000 (15:27 +0100)]
journal: timestamp support on console messages
journald mimics the kernel here: timestamps will be printed if
/sys/module/printk/parameters/time contains "Y".
Tom Gundersen [Tue, 12 Nov 2013 21:37:51 +0000 (22:37 +0100)]
rtnl: start adding support for asynchronous messaging
Similarly to sd-bus, add:
sd_rtnl_wait
sd_rtnl_process
sd_rtnl_send
and adapt sd_rtnl_call accordingly.
Tom Gundersen [Mon, 11 Nov 2013 17:55:34 +0000 (18:55 +0100)]
rtnl: rename rtnl_bus_send_with_reply_and_block() to rtnl_bus_call()
Follow the equivalent rename in sd-bus to stay as similar as possible.
Thomas Hindoe Paaboel Andersen [Wed, 13 Nov 2013 17:06:34 +0000 (18:06 +0100)]
logind: create the session fifo before saving the session file
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
Mantas Mikulėnas [Wed, 13 Nov 2013 11:36:16 +0000 (13:36 +0200)]
activate: fix crash when -s is passed
getopt_long() was told to accept -s which was never implemented.
Mantas Mikulėnas [Wed, 13 Nov 2013 11:36:17 +0000 (13:36 +0200)]
activate: mention -E in the help text
Mantas Mikulėnas [Wed, 13 Nov 2013 11:36:18 +0000 (13:36 +0200)]
systemctl: honor --no-legend in 'list-jobs'
Umut Tezduyar Lindskog [Wed, 13 Nov 2013 08:47:57 +0000 (09:47 +0100)]
build: Allow disabling maintainer mode
This allows make rules for generated build files (i.e. configure,
Makefile.in, ... ) to be skipped. This is useful when
the source is stored without timestamps (for example in CVS or GIT).
When the build rules trigger to regenerate the build files, it tries to
use the same autotools version (currently 1.14) as was originally used
for the release. Since many of our build machines run Debian Squeeze,
they only have autotools 1.11 available and the build fails.
Currently, we have to work around this by touching all the generated
files before building to avoid triggering the make rule. With this
patch, we would be able to just run configure with
--disable-maintainer-mode instead. The patch sets the default to enable
to not change the default behavior.
Ref: http://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/commit/
?id=
f5cc26c77d2f332a9b40f51f0ec72e95711edf1e
Kay Sievers [Wed, 13 Nov 2013 02:34:24 +0000 (03:34 +0100)]
udev: declare some symbols static
Kay Sievers [Wed, 13 Nov 2013 01:46:28 +0000 (02:46 +0100)]
libsystemd-id128: statically include sd_listen_fds()
Zbigniew Jędrzejewski-Szmek [Wed, 13 Nov 2013 00:02:28 +0000 (19:02 -0500)]
build-sys: parallelize 'exported' target
Zbigniew Jędrzejewski-Szmek [Tue, 12 Nov 2013 00:53:59 +0000 (19:53 -0500)]
systemd-python: fix booted() and add two functions to docs
For some reason sphinx doesn't want to show inherited C functions.
Zbigniew Jędrzejewski-Szmek [Tue, 12 Nov 2013 00:32:34 +0000 (19:32 -0500)]
build-sys: make public libraries depend on .sym files
This way modyfing the .sym file causes a rebuild.
Zbigniew Jędrzejewski-Szmek [Mon, 11 Nov 2013 03:17:25 +0000 (22:17 -0500)]
build-sys: add a link test for exported symbols
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.
Tom Gundersen [Tue, 12 Nov 2013 21:44:18 +0000 (22:44 +0100)]
build-sys: make networkd man pages conditional
Colin Walters [Tue, 12 Nov 2013 20:43:17 +0000 (15:43 -0500)]
build-sys: Add --disable-networkd option
For GNOME (Continuous), we are unlikely to require or want
systemd-networkd in the near term future; all of the tools and code
are targeting NetworkManager.
The long term story is still an open question of course, but for now,
there's no reason for gnome-continuous to build or ship this.
Kristian Høgsberg [Tue, 12 Nov 2013 17:11:43 +0000 (18:11 +0100)]
uaccess: Add new DRM render nodes
Kay Sievers [Tue, 12 Nov 2013 17:09:08 +0000 (18:09 +0100)]
udev: declare some symbols static
Kay Sievers [Tue, 12 Nov 2013 14:49:36 +0000 (15:49 +0100)]
bus: test-bus-objects - add missing header
Lennart Poettering [Tue, 12 Nov 2013 11:11:24 +0000 (12:11 +0100)]
bus: add missing dump.[ch]
Lennart Poettering [Mon, 11 Nov 2013 23:12:08 +0000 (00:12 +0100)]
bus: beautify bus_message_dump() output a bit
Lennart Poettering [Mon, 11 Nov 2013 22:45:36 +0000 (23:45 +0100)]
busctl: show machine name of all registered names
Lennart Poettering [Mon, 11 Nov 2013 22:44:00 +0000 (23:44 +0100)]
bus: set no_auto_start flag for GetMachineId calls, so that we don't auto-start if we want to know the machine of a bus service
Lennart Poettering [Mon, 11 Nov 2013 22:42:30 +0000 (23:42 +0100)]
bus: detect blocking message calls to our own connection and return ELOOP early
Lennart Poettering [Mon, 11 Nov 2013 22:42:00 +0000 (23:42 +0100)]
bus: add api to control auto start message flag
Lennart Poettering [Mon, 11 Nov 2013 22:40:41 +0000 (23:40 +0100)]
id128: introduce SD_ID128_STRING_MAX consant for sizing id128 strings
Lennart Poettering [Mon, 11 Nov 2013 22:40:00 +0000 (23:40 +0100)]
bus: export utf8 validator calls as pure functions
Lennart Poettering [Mon, 11 Nov 2013 21:00:48 +0000 (22:00 +0100)]
bus: introduce concept of a default bus for each thread and make use of it 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.
Lennart Poettering [Mon, 11 Nov 2013 18:34:13 +0000 (19:34 +0100)]
bus: introduce concept of a "default" event loop per-thread and make use of 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()".
Lennart Poettering [Mon, 11 Nov 2013 18:09:02 +0000 (19:09 +0100)]
test: fix minor memory leak in test-event
Lennart Poettering [Mon, 11 Nov 2013 17:55:34 +0000 (18:55 +0100)]
bus: rename sd_bus_send_with_reply_and_block() to sd_bus_call()
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.
Kay Sievers [Mon, 11 Nov 2013 16:18:51 +0000 (17:18 +0100)]
systemctl: warning: ‘r’ may be used uninitialized in this function
Dave Reisner [Mon, 11 Nov 2013 15:13:36 +0000 (10:13 -0500)]
shell: add list-timers to systemctl completions
Zbigniew Jędrzejewski-Szmek [Mon, 11 Nov 2013 13:06:14 +0000 (08:06 -0500)]
systemctl: avoid unitialized access when showing 0 timers
Lennart Poettering [Mon, 11 Nov 2013 15:26:12 +0000 (16:26 +0100)]
bus: add APIs for adding iovecs to messages as string or arrays
Lennart Poettering [Mon, 11 Nov 2013 02:06:14 +0000 (03:06 +0100)]
systemctl: add new "list-timers" command
Lennart Poettering [Mon, 11 Nov 2013 02:03:17 +0000 (03:03 +0100)]
timer: consider (usec_t) -1 an invalid timestamp
Lennart Poettering [Mon, 11 Nov 2013 02:02:52 +0000 (03:02 +0100)]
timer: properly format relative timestamps in the future
Dave Reisner [Mon, 11 Nov 2013 14:17:08 +0000 (09:17 -0500)]
udev.xml: add missing </para> tag
Dave Reisner [Sun, 10 Nov 2013 21:02:29 +0000 (16:02 -0500)]
udev.xml: minor fixes to network link configuration
- Refer to net_setup_link, not net-setup-link
- Mention the required file extension earlier
Lennart Poettering [Sun, 10 Nov 2013 22:53:55 +0000 (23:53 +0100)]
bus: we really need to get rid of the :no-sender hack
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.
Lennart Poettering [Sun, 10 Nov 2013 22:53:49 +0000 (23:53 +0100)]
bus: actually export sd_utf8_is_valid() and sd_ascii_is_valid()
Lennart Poettering [Sun, 10 Nov 2013 22:52:21 +0000 (23:52 +0100)]
bus: use ENXIO as error condition when trying to exit a container when we 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.
Lennart Poettering [Sun, 10 Nov 2013 22:51:22 +0000 (23:51 +0100)]
build-sys: subtract list of exported symbols from "check-api-unused" list
Thomas Hindoe Paaboel Andersen [Sun, 10 Nov 2013 22:21:15 +0000 (23:21 +0100)]
analyze: plot the time spent setting up security modules
Lennart Poettering [Sun, 10 Nov 2013 22:05:08 +0000 (23:05 +0100)]
button: don't exit if we cannot handle a button press
Tom Gundersen [Sun, 10 Nov 2013 19:52:53 +0000 (20:52 +0100)]
man: networkd - add documentation
Tom Gundersen [Sun, 10 Nov 2013 18:33:18 +0000 (19:33 +0100)]
man: udev - add documentation for .link files
Zbigniew Jędrzejewski-Szmek [Sun, 10 Nov 2013 01:31:12 +0000 (20:31 -0500)]
bus: fix build with old glibc
Zbigniew Jędrzejewski-Szmek [Sun, 10 Nov 2013 00:40:46 +0000 (19:40 -0500)]
systemctl: make sure daemon-reload returns success
Also change sd_bus_message_exit_container to return -ENOENT
when not in a container, to make it easier to distinguish different
errors.
Tom Gundersen [Sun, 10 Nov 2013 00:26:24 +0000 (01:26 +0100)]
network: fix tests
One of the tests were assuming the network configuration dirs exist. We
can't do that, so disable it for now.
Zbigniew Jędrzejewski-Szmek [Sat, 9 Nov 2013 23:32:31 +0000 (18:32 -0500)]
systemctl: fix printing of individual properties
Zbigniew Jędrzejewski-Szmek [Sat, 9 Nov 2013 13:00:33 +0000 (08:00 -0500)]
build-sys: simplify defined/undefined definition
Zbigniew Jędrzejewski-Szmek [Fri, 8 Nov 2013 13:41:13 +0000 (08:41 -0500)]
systemd: fix memory leak in cgroup code
If the unit already was in the hashmap, path would be leaked.
Zbigniew Jędrzejewski-Szmek [Fri, 8 Nov 2013 04:57:19 +0000 (23:57 -0500)]
man,units: fix installation of systemd-nspawn@.service and add example
William Giokas [Thu, 7 Nov 2013 22:00:51 +0000 (16:00 -0600)]
zsh-completion: Move machine listing to autoload
Instead of having two different listings of machines, use an autoloaded
function that can be used by other shell completions in the future. It
will also allow editing a single file to change the way machinectl and
systemd-run completion for machines.
William Giokas [Thu, 7 Nov 2013 22:00:52 +0000 (16:00 -0600)]
zsh-completion: Move output modes to autoload
Tom Gundersen [Thu, 17 Oct 2013 01:18:36 +0000 (03:18 +0200)]
networkd: add a basic network daemon
This daemon listens for and configures network devices tagged with
'systemd-networkd'. By default, no devices are tagged so this daemon
can safely run in parallel with existing network daemons/scripts.
Networks are configured in /etc/systemd/network/*.network. The first .network
file that matches a given link is applied. The matching logic is similar to
the one for .link files, but additionally supports matching on interface name.
The mid-term aim is to provide an alternative to ad-hoc scripts currently used
in initrd's and for wired setups that don't change much (e.g., as seen on
servers/and some embedded systems).
Currently, static addresses and a gateway can be configured.
Example .network file:
[Match]
Name=wlp2s0
[Network]
Description=My Network
Gateway=192.168.1.1
Address=192.168.1.23/24
Address=fe80::9aee:94ff:fe3f:c618/64
Tom Gundersen [Sat, 9 Nov 2013 21:19:42 +0000 (22:19 +0100)]
net-util: add inet address/family parsing
Thomas Hindoe Paaboel Andersen [Sat, 9 Nov 2013 13:11:56 +0000 (14:11 +0100)]
bootctl: remove unused options from getopt_long
Kay Sievers [Fri, 8 Nov 2013 23:58:11 +0000 (00:58 +0100)]
bus: let magic ":no-sender" pass the validation
Lennart Poettering [Fri, 8 Nov 2013 18:49:49 +0000 (19:49 +0100)]
bus: port remaining code over to use bus_error_message()
Lennart Poettering [Fri, 8 Nov 2013 18:48:42 +0000 (19:48 +0100)]
localectl: port over to bus_log_create_error()
Lennart Poettering [Fri, 8 Nov 2013 18:32:45 +0000 (19:32 +0100)]
shutdown: unify handling of reboot() syscall a bit
Lennart Poettering [Fri, 8 Nov 2013 17:57:26 +0000 (18:57 +0100)]
systemctl: properly initialize column widths for list-jobs
Kay Sievers [Fri, 8 Nov 2013 17:50:58 +0000 (18:50 +0100)]
systemctl: rename 'listen'
src/systemctl/systemctl.c: In function ‘get_listening’:
src/systemctl/systemctl.c:535:25: warning: declaration of ‘listen’ shadows a global declaration [-Wshadow]
src/systemctl/systemctl.c: In function ‘list_sockets’:
src/systemctl/systemctl.c:690:44: warning: declaration of ‘listen’ shadows a global declaration [-Wshadow]
Lennart Poettering [Fri, 8 Nov 2013 17:23:47 +0000 (18:23 +0100)]
bus: allow queuing more local msgs
When issuing a synchronous "systemctl daemon-reload" requests this will
send out a tonload of UnitRemoved+UnitNew signals, that we will queue
locally. When we wait for the message reply, we should be able to queue
those, hence bump the limits on locally queuing messages.
Lennart Poettering [Fri, 8 Nov 2013 17:11:09 +0000 (18:11 +0100)]
Remove dead code and unexport some calls
"make check-api-unused" informs us about code that is not used anymore
or that is exported but only used internally. Fix these all over the
place.
Lennart Poettering [Fri, 8 Nov 2013 17:10:51 +0000 (18:10 +0100)]
build-sys: fix rule for generating undefined list
Kay Sievers [Fri, 8 Nov 2013 16:49:59 +0000 (17:49 +0100)]
systemctl: fix "reboot" call
Lennart Poettering [Fri, 8 Nov 2013 16:07:07 +0000 (17:07 +0100)]
systemctl: restore ability to directly connect to PID1 from systemctl
Lukas Nykryn [Fri, 8 Nov 2013 15:01:22 +0000 (16:01 +0100)]
manager: configurable StartLimit default values
https://bugzilla.redhat.com/show_bug.cgi?id=821723
Lennart Poettering [Fri, 8 Nov 2013 15:53:00 +0000 (16:53 +0100)]
man: update systemctl man page to mentioned --machine=
Lennart Poettering [Fri, 8 Nov 2013 15:52:42 +0000 (16:52 +0100)]
build-sys: add make check-api-unused
Lennart Poettering [Fri, 8 Nov 2013 15:52:24 +0000 (16:52 +0100)]
build-sys: install busctl
Dave Reisner [Fri, 8 Nov 2013 14:38:50 +0000 (09:38 -0500)]
link-config: Fix typo in log_warning
Dave Reisner [Fri, 8 Nov 2013 14:17:08 +0000 (09:17 -0500)]
link-config: match length for kernel commandline option
This prevents enable_name_policy() from invariably returning false when
it matches a zero length string at the end of /proc/cmdline.
Kay Sievers [Fri, 8 Nov 2013 14:21:50 +0000 (15:21 +0100)]
systemctl: initialize variables
Lennart Poettering [Fri, 8 Nov 2013 13:06:46 +0000 (14:06 +0100)]
systemctl: allow listing cgroups of containers
Lennart Poettering [Fri, 8 Nov 2013 12:57:18 +0000 (13:57 +0100)]
clients: fix some signal handler issues
Lennart Poettering [Fri, 8 Nov 2013 12:54:46 +0000 (13:54 +0100)]
systemctl: various cleanups
Lennart Poettering [Fri, 8 Nov 2013 12:54:18 +0000 (13:54 +0100)]
install: don't override caller's parameter
Lennart Poettering [Fri, 8 Nov 2013 12:54:00 +0000 (13:54 +0100)]
clients: add missing command line arguments
Lennart Poettering [Fri, 8 Nov 2013 12:53:25 +0000 (13:53 +0100)]
journal: fix minor memory leak
Lennart Poettering [Fri, 8 Nov 2013 12:53:09 +0000 (13:53 +0100)]
update TODO
Marc-Antoine Perennou [Thu, 7 Nov 2013 04:49:04 +0000 (13:49 +0900)]
systemctl: port to libsystemd-bus
Lennart Poettering [Thu, 7 Nov 2013 23:49:44 +0000 (00:49 +0100)]
machinectl: close bus to container early