1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 09:56:51 +03:00
Commit Graph

13214 Commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
04504f93d1 systemctl: fix 'is-enabled' 2013-12-08 19:26:51 -05:00
Zbigniew Jędrzejewski-Szmek
d08e75edf9 systemctl: simplify argument parsing 2013-12-08 19:26:51 -05:00
Zbigniew Jędrzejewski-Szmek
4f8f66cb42 Help output spring cleaning
Use [brackets] only for optional elements.
Use <optional> in XML sources.
2013-12-08 19:26:51 -05:00
Zbigniew Jędrzejewski-Szmek
a6c3d202b1 kernel-install: add -h/--help 2013-12-08 19:26:51 -05:00
Zbigniew Jędrzejewski-Szmek
014e7ea7f2 Trim TODO 2013-12-08 19:26:51 -05:00
Thomas Hindoe Paaboel Andersen
272bf69e98 bootchart: remove dead assignment 2013-12-08 22:28:37 +01:00
Dan McGee
f92ae4968f Fix memory leak in stdout journal streams
Just as 'identifier' is strdup-ed and freed, we need to do the same for
unit_id.
2013-12-08 13:15:59 -08:00
Kay Sievers
e13bb5d2b1 test: cgroup-util - do not fail if cpu controller is not available 2013-12-08 06:36:39 +01:00
Thomas Hindoe Paaboel Andersen
4c49ab0e7a systemctl: fix and refactor wait_for_jobs
wait_for_jobs was ignoring the errors from the jobs stored in r.
It would only ever return whether the call to sd_bus_remove_filter
went ok. This patch changes it to return the first job related error
encountered. If a job related error is found, then the result of the
call to sd_bus_remove_filter is ignored.

wait_for_jobs was a bit hard to read so I split it up to avoid
the goto and deep nesting.
2013-12-07 22:39:46 +01:00
Zbigniew Jędrzejewski-Szmek
d8fba7c6cc systemctl: allow globbing in list-<whatever> commands
It is nicer to say 'systemctl list-units ssh\*' then to use grep,
because colouring is preserved and it is easier to match just against
the unit name.
2013-12-06 21:29:55 -05:00
Zbigniew Jędrzejewski-Szmek
2b6bf07dd2 Get rid of our reimplementation of basename
The only problem is that libgen.h #defines basename to point to it's
own broken implementation instead of the GNU one. This can be fixed
by #undefining basename.
2013-12-06 21:29:55 -05:00
Thomas Hindoe Paaboel Andersen
f433609894 systemctl: check the value from start_unit_one
introduced in f459b6025f
2013-12-06 21:13:46 +01:00
Kay Sievers
4ccbc14615 bus: catch up with latest kdbus changes 2013-12-06 21:11:37 +01:00
Kay Sievers
5e16c2575b bus: catch up with latest kdbus changes 2013-12-06 20:28:35 +01:00
Bastien Nocera
354806fb46 rfkill: Avoid error when state restore is disabled
When the state restore is disabled, we would print:
"Unknown verb: load" instead of simply skipping loading the
state.
2013-12-06 16:44:38 +01:00
Kay Sievers
a8d4cac55c bus: catch up with latest kdbus changes 2013-12-06 14:31:43 +01:00
Kay Sievers
d94fe1f177 busctl: remove ','; it's all one string 2013-12-06 13:56:23 +01:00
Shawn Landden
2ed4e5e0b8 nspawn: fix buggy mount_binds, now works for bind-mounted files 2013-12-06 00:38:13 -05:00
Yuxuan Shui
85ca9433ab util: fix misuse of memcmp 2013-12-05 22:49:02 -05:00
Zbigniew Jędrzejewski-Szmek
86cb0691b7 shell-completion: busctl 2013-12-05 21:33:08 -05:00
Kay Sievers
ff6c70f18b bus: update kdbus.h 2013-12-06 01:30:59 +01:00
Zbigniew Jędrzejewski-Szmek
e775289d56 systemd: add a start job for all units in SYSTEMD_[USER_]WANTS= 2013-12-05 17:25:08 -05:00
Thomas Hindoe Paaboel Andersen
a809021a9c execute.h: remove redefinition of Unit
Unit is typedef'ed in both unit.h and execute.h. The typedef
existed first in unit.h and was later added to execute.h in
c17ec25e4d

It is no longer needed so let's just keep the one in unit.h to
avoid redefining it.
2013-12-05 22:35:11 +01:00
Thomas Hindoe Paaboel Andersen
8edb59a98b test-bus-gvariant: remove unused variable 2013-12-05 22:33:22 +01:00
Lennart Poettering
bc25a2fb66 bus: start maintaining a list of difference between kdbus/dbus1 2013-12-05 03:19:18 +01:00
Lennart Poettering
ea6ad56836 bus: add missing LE meta data enforcement for gvariant serializer 2013-12-05 03:09:09 +01:00
Lennart Poettering
2f671520eb busname: improve condition check 2013-12-05 02:48:17 +01:00
Lennart Poettering
c1b9d93572 bus: add support for serializing to gvariant
(deserialization is still missing, hence this is not hooked up to kdbus)
2013-12-05 02:47:36 +01:00
Kay Sievers
65dae17a2f bus: switch to multiple KDBUS_ITEM_NAME including the flags 2013-12-05 00:22:28 +01:00
Alex Jia
a8053f197e man.systemd-cgls: Fix an option typo
The option 'M' is inconsistent between help document and man page.
2013-12-04 14:55:25 -08:00
Thomas Hindoe Paaboel Andersen
a65c89bbb0 README: remove obsolete paragraph about D-Bus 2013-12-04 23:00:05 +01:00
Thomas Hindoe Paaboel Andersen
071066a5e5 systemctl: make an always true assert static
Silences a warning i clang
2013-12-04 22:29:58 +01:00
Thomas Hindoe Paaboel Andersen
4fd944ec82 systemctl: no need to fdopen stdout 2013-12-04 22:29:51 +01:00
Kay Sievers
f7d8595113 libsystemd-bus: catch up with latest kdbus changes 2013-12-04 19:07:10 +01:00
David Coppa
f20c84c15f Fix typo: SetChasis -> SetChassis 2013-12-04 09:28:19 -05:00
Tom Gundersen
0a4b9a0787 TODO: add networkd entries 2013-12-04 14:15:13 +01:00
Tom Gundersen
dd3efc0993 networkd: add link-sense and simplify state-machine a bit
This listens to rtnetlink for changes to IFF_UP and IFF_LOWER_UP (link sense). The latter
is simply logged at the moment, but will be useful once we add dhcp support.
2013-12-04 14:15:13 +01:00
Tom Gundersen
50b3c42f97 rtnl: add link_get_flags 2013-12-04 14:15:13 +01:00
Tom Gundersen
8cec01b9e9 rtnl: add callback support
sd_rtnl_add_match allows you to add a callback function for when given types of
messages are received.
2013-12-04 14:15:13 +01:00
Tom Gundersen
a02113d2ea rtnl: don't ignore broadcast messages 2013-12-04 14:15:13 +01:00
Kay Sievers
e63bb33d71 libsystemd-bus: catch up with latest kdbus list query changes 2013-12-04 11:47:22 +01:00
Thomas Hindoe Paaboel Andersen
f168c27313 trivial coding style clean ups
- 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()
    {
    }
2013-12-03 22:27:45 +01:00
Thomas Hindoe Paaboel Andersen
53ab52ac6d sd-memfd: use assert_return 2013-12-03 21:58:51 +01:00
Lennart Poettering
c0a0913218 bus: fix parsing of AcquireName() response 2013-12-03 20:31:34 +01:00
Lennart Poettering
a6aa89122d bus: don't make use of the private bus socket if kdbus is available 2013-12-03 19:55:51 +01:00
Lennart Poettering
0e7be1293f core: use normal library call to query list of current names 2013-12-03 18:58:18 +01:00
Lennart Poettering
71f2ab468d bus: rework sd_bus_list_names() to return two lists for acquired and activatable names 2013-12-03 18:42:51 +01:00
Lennart Poettering
0461f8cdc1 bus: internalize a lot of protocol definitions
We shouldn export what isn't necessary or useful to clients, so let's
add the protocol definitions we only need internally into a private
header.
2013-12-03 18:14:50 +01:00
Zbigniew Jędrzejewski-Szmek
6c045c0b4c journal: fail silently in sd_j_sendv() if journal is unavailable
"syslog(3) and sd_journal_print() may largely be used interchangeably
functionality-wise" according to sd_journal_print(3). This socket
should be always available except in rare circumstatances, and we
don't random applications to fail on logging, so let's do what syslog
did. The alternative of forcing all callers to do error handling for
this rare case doesn't really have any benefits, since if they can't
log there isn't much they can do anyway.

https://bugzilla.redhat.com/show_bug.cgi?id=1023041
2013-12-03 12:11:18 -05:00
Lennart Poettering
e7176abbe8 bus: make sd_bus_request_name() and sd_bus_release_name() behave more like other calls
Instead of returning an enum of return codes, make them return error
codes like kdbus does internally.

Also, document this behaviour so that clients can stick to it.

(Also rework bus-control.c to always have to functions for dbus1 vs.
kernel implementation of the various calls.)
2013-12-03 18:02:46 +01:00