chiark / gitweb /
8 years agoman: document sd_pid_get_slice() call of libsystemd-login
Lennart Poettering [Fri, 19 Jul 2013 16:10:12 +0000 (18:10 +0200)]
man: document sd_pid_get_slice() call of libsystemd-login

8 years agoman: a few corrections to the machinectl man page
Lennart Poettering [Fri, 19 Jul 2013 16:00:21 +0000 (18:00 +0200)]
man: a few corrections to the machinectl man page

8 years agoman: update systemd-nspawn regarding new --slice= logic
Lennart Poettering [Fri, 19 Jul 2013 15:55:52 +0000 (17:55 +0200)]
man: update systemd-nspawn regarding new --slice= logic

8 years agoman: extend systemd-run man page a little
Lennart Poettering [Fri, 19 Jul 2013 15:51:26 +0000 (17:51 +0200)]
man: extend systemd-run man page a little

8 years agoman: drop the old cgroup settings from the man pages
Lennart Poettering [Fri, 19 Jul 2013 15:23:10 +0000 (17:23 +0200)]
man: drop the old cgroup settings from the man pages

8 years agotmpfiles: Fix memory leak in parse_line()
Maciej Wereski [Fri, 19 Jul 2013 13:43:12 +0000 (15:43 +0200)]
tmpfiles: Fix memory leak in parse_line()

8 years agoudev: fix two trivial memleaks in error path
Zbigniew Jędrzejewski-Szmek [Thu, 18 Jul 2013 23:36:55 +0000 (19:36 -0400)]
udev: fix two trivial memleaks in error path

Based-on-a-patch-by: Ian Stakenvicius <>
8 years agoman: Fix example to use the new --boot syntax
Jan Janssen [Fri, 19 Jul 2013 11:54:51 +0000 (13:54 +0200)]
man: Fix example to use the new --boot syntax

8 years agonspawn: Reorder includes to fix compilation
Jesper Larsen [Fri, 19 Jul 2013 09:40:44 +0000 (11:40 +0200)]
nspawn: Reorder includes to fix compilation

Commit 2e996f4d4b642c5682c608c9692ad2ffae398ab2 added an include
of linux/netlink.h

This kernel header is not self contained in the linux 2.6 kernel
which breaks compilation with an unknown type sa_family_t

A workaround is to include linux/netlink.h after sys/socket.h

8 years agocore: add %v specifier
Zbigniew Jędrzejewski-Szmek [Fri, 19 Jul 2013 06:45:27 +0000 (02:45 -0400)]
core: add %v specifier

8 years agoman: document Slice= setting (and other fixes)
Lennart Poettering [Fri, 19 Jul 2013 02:10:06 +0000 (04:10 +0200)]
man: document Slice= setting (and other fixes)

8 years agomachined: run machined at minimal capabilities
Lennart Poettering [Fri, 19 Jul 2013 01:49:24 +0000 (03:49 +0200)]
machined: run machined at minimal capabilities

8 years agounits: add references to bus API documentation to logind+machined
Lennart Poettering [Fri, 19 Jul 2013 01:49:07 +0000 (03:49 +0200)]
units: add references to bus API documentation to logind+machined

8 years agoupdate TODO
Lennart Poettering [Fri, 19 Jul 2013 01:48:23 +0000 (03:48 +0200)]
update TODO

8 years agomachined: correct how some properties are exported on the bus
Lennart Poettering [Fri, 19 Jul 2013 00:47:05 +0000 (02:47 +0200)]
machined: correct how some properties are exported on the bus

8 years agoman: add reference to new machined bus API documentation in the wiki
Lennart Poettering [Fri, 19 Jul 2013 00:46:27 +0000 (02:46 +0200)]
man: add reference to new machined bus API documentation in the wiki

8 years agoTODO: update
Kay Sievers [Thu, 18 Jul 2013 21:07:37 +0000 (23:07 +0200)]
TODO: update

8 years agotests: skip tests when executed without privileges but which require them
Kay Sievers [Thu, 18 Jul 2013 21:05:29 +0000 (23:05 +0200)]
tests: skip tests when executed without privileges but which require them

8 years agoutil: add split_pair() for splitting foo=bar strings
Lennart Poettering [Thu, 18 Jul 2013 18:22:29 +0000 (20:22 +0200)]
util: add split_pair() for splitting foo=bar strings

8 years agojournal: Leave server_dispatch_message early when Storage is none
Holger Hans Peter Freyther [Thu, 18 Jul 2013 12:45:12 +0000 (14:45 +0200)]
journal: Leave server_dispatch_message early when Storage is none

When using Storage=none there is no point in collecting all the
information just to throw them away. After this change journald
consumes a lot less CPU time when only forwarding messages.

8 years agosystemctl: option to list units by state
Maciej Wereski [Thu, 18 Jul 2013 11:24:12 +0000 (13:24 +0200)]
systemctl: option to list units by state

This allows to show only units with specified LOAD or SUB or ACTIVE state.

8 years agojournalctl: add ”short-iso” output format with verbose ISO8601 timestamps
Tomasz Torcz [Thu, 18 Jul 2013 08:21:45 +0000 (10:21 +0200)]
journalctl: add ”short-iso” output format with verbose ISO8601 timestamps

2013-07-18T10:10:01+0200 sandworm CROND[20957]: (root) CMD (/usr/lib64/sa/sa1 1 1)

8 years agorules: keyboard - use builtin command
Kay Sievers [Thu, 18 Jul 2013 12:40:42 +0000 (14:40 +0200)]
rules: keyboard - use builtin command

8 years agojournalctl: fix signedness warning and boot-id syntax check
Zbigniew Jędrzejewski-Szmek [Thu, 18 Jul 2013 12:07:01 +0000 (08:07 -0400)]
journalctl: fix signedness warning and boot-id syntax check

8 years agotest: Keep the test-suite.log around in case of a test failure
Holger Hans Peter Freyther [Wed, 17 Jul 2013 14:29:55 +0000 (16:29 +0200)]
test: Keep the test-suite.log around in case of a test failure

The addition of .DELETE_ON_ERROR will lead to the removal of the
test-suite.log in case of a test failure. Mark the rule as PRECIOUS
to keep that file around.

8 years agosystemd-python: also update the documentation
Zbigniew Jędrzejewski-Szmek [Thu, 18 Jul 2013 04:03:09 +0000 (00:03 -0400)]
systemd-python: also update the documentation

sphinx, oh sphinx, why do you require manual ficksups all the time?

8 years agosystemd,systemctl: export condition status and show failing condition
Zbigniew Jędrzejewski-Szmek [Tue, 25 Jun 2013 20:09:07 +0000 (16:09 -0400)]
systemd,systemctl: export condition status and show failing condition

$ systemctl --user status hoohoo
   Loaded: loaded (/home/zbyszek/.config/systemd/user/hoohoo.service; static)
   Active: inactive (dead)
           start condition failed at Tue 2013-06-25 18:08:42 EDT; 1s ago
           ConditionPathExists=/tmp/hoo was not met

Full information is exported over D-Bus:
  [(condition, trigger, negate, param, state),...]
where state is one of "failed" (<0), "untested" (0), "OK" (>0).
I've decided to use 0 for "untested", because it might be useful to
differentiate different types of failure later on, without breaking

systemctl shows the failing condition, if there was a non-trigger
failing condition, or says "none of the trigger conditions were met",
because there're often many trigger conditions, and they must all
fail for the condition to fail, so printing them all would consume
a lot of space, and bring unnecessary attention to something that is
quite low-level.

8 years agosystemd: log failed conditions
Zbigniew Jędrzejewski-Szmek [Tue, 25 Jun 2013 16:15:07 +0000 (12:15 -0400)]
systemd: log failed conditions

ConditionPathExists=/tmp/nosuchpath failed for nosuchpath.service.

8 years agojournalctl: remove ":" from the --boot syntax
Zbigniew Jędrzejewski-Szmek [Tue, 16 Jul 2013 19:56:22 +0000 (15:56 -0400)]
journalctl: remove ":" from the --boot syntax

Instead of :-0, :1, :5, etc., use -0, 1 or +1, 5, etc. For BOOT_ID+OFFSET,
use BOOT_ID+offset or BOOT_ID-offset (either + or - is required).

Also make error handling a bit more robust and verbose.
Modify the man page to describe the most common case (-b) first,
and the second most common case (-b -1) second.

8 years agosystemd-python: add support for sd_j_open_files
Zbigniew Jędrzejewski-Szmek [Wed, 17 Jul 2013 16:50:13 +0000 (12:50 -0400)]
systemd-python: add support for sd_j_open_files

Also export missing flags.

8 years agosystemd-python: fix iteration
Zbigniew Jędrzejewski-Szmek [Wed, 17 Jul 2013 16:50:43 +0000 (12:50 -0400)]
systemd-python: fix iteration

Back in 6a58bf4135 raising stop iteration was removed from the C
code, but wasn't added in the Python counterpart.

8 years agohwdb: data update
Kay Sievers [Thu, 18 Jul 2013 01:05:51 +0000 (03:05 +0200)]
hwdb: data update

8 years agosystemctl: also highlight a load state of "not-found" as red
Lennart Poettering [Thu, 18 Jul 2013 00:31:06 +0000 (02:31 +0200)]
systemctl: also highlight a load state of "not-found" as red

"not-found" is a recently added load state and was previously just a
special case of "error". Since it also indicates a load error we should
also highlight it red, the same way as "error" was treated before.

8 years agomount: also exclude /usr from unmount at shutdown
Lennart Poettering [Thu, 18 Jul 2013 00:31:01 +0000 (02:31 +0200)]
mount: also exclude /usr from unmount at shutdown

8 years agoupdate TODO
Lennart Poettering [Thu, 18 Jul 2013 00:29:06 +0000 (02:29 +0200)]
update TODO

8 years agoservice: don't enter a second SIGTERM/SIGKILL cycle if no ExecStopPost= process is...
Michael Olbrich [Wed, 12 Jun 2013 06:41:16 +0000 (08:41 +0200)]
service: don't enter a second SIGTERM/SIGKILL cycle if no ExecStopPost= process is defined

It won't help if the main process is still there and there is no new
process to kill.

8 years agoremove RD_TIMESTAMP import
Harald Hoyer [Wed, 17 Jul 2013 09:27:32 +0000 (11:27 +0200)]
remove RD_TIMESTAMP import

If you want timing information from the initramfs, use systemd in the

8 years agoremove /run/initramfs/root-fsck logic
Harald Hoyer [Wed, 17 Jul 2013 09:19:39 +0000 (11:19 +0200)]
remove /run/initramfs/root-fsck logic

dracut uses systemd in the initramfs and does not write these files

The state of the root fsck is serialized.

8 years agoUpdate TODO
Zbigniew Jędrzejewski-Szmek [Wed, 17 Jul 2013 02:44:38 +0000 (22:44 -0400)]
Update TODO

This point was done in 77a9e8de6.

8 years agojournalctl,systemctl: fix tiny memleak
Zbigniew Jędrzejewski-Szmek [Tue, 16 Jul 2013 18:45:28 +0000 (14:45 -0400)]
journalctl,systemctl: fix tiny memleak

8 years agojournalctl: augment short mode with a cursor at the end
Zbigniew Jędrzejewski-Szmek [Tue, 16 Jul 2013 14:21:18 +0000 (10:21 -0400)]
journalctl: augment short mode with a cursor at the end

Two options are added: --show-cursor to print the cursor at the end,
and --after-cursor to resume logs on the next line after the previous one.

8 years agoutil: make gcc shut up by passing a 0 mode param to open()
Lennart Poettering [Wed, 17 Jul 2013 00:52:41 +0000 (02:52 +0200)]
util: make gcc shut up by passing a 0 mode param to open()

If we pass a variable to open()'s flags parameter it really wants a mode
parameter too, otherwise some gcc version whine. Hence, pass 0 in that

8 years agoutil: make some gcc versions shut up regarding unintialized variable access
Lennart Poettering [Wed, 17 Jul 2013 00:48:53 +0000 (02:48 +0200)]
util: make some gcc versions shut up regarding unintialized variable access

8 years agoupdate TODO
Lennart Poettering [Wed, 17 Jul 2013 00:29:19 +0000 (02:29 +0200)]
update TODO

8 years agologind: remove "if (0)" left-over
Kay Sievers [Tue, 16 Jul 2013 23:49:26 +0000 (01:49 +0200)]
logind: remove "if (0)" left-over

8 years agologind-acl: use macros
Tom Gundersen [Tue, 16 Jul 2013 21:05:02 +0000 (23:05 +0200)]
logind-acl: use macros

Simplify by using FOREACH_DIRENT and _cleanup_closedir_ macros.

8 years agologind: apply ACL's to "dead" device nodes
Tom Gundersen [Sun, 7 Jul 2013 19:29:12 +0000 (21:29 +0200)]
logind: apply ACL's to "dead" device nodes

Based on a patch by Kay Sievers.

When a dead device nodes is tagged with "uaccess" using the static_node mechanism,
it's ACL's are managed by logind in the same way as "live" device nodes.

This allows in particular /dev/snd/{seq,timer} to cause modules to be loaded
on-demand when accessed by a non-privileged user.

8 years agoudev: export tags of "dead" device nodes to /run/udev/static_node-tags/
Tom Gundersen [Sun, 7 Jul 2013 16:32:34 +0000 (18:32 +0200)]
udev: export tags of "dead" device nodes to /run/udev/static_node-tags/

Based on a patch by Kay Sievers.

A tag is exported at boot as a symlinks to the device node in the folder
/run/udev/static_node-tags/<tagname>/, if the device node exists.

These tags are cleaned up by udevadm info --cleanup-db, but are otherwise
never removed.

8 years agoutil.c:is_locale_utf8(): check, if "C" was set on purpose
Harald Hoyer [Thu, 27 Jun 2013 09:26:36 +0000 (11:26 +0200)]
util.c:is_locale_utf8(): check, if "C" was set on purpose

If you have a ASCII only terminal, there is no way to set the charmap to
ANSI_X3.4-1968, other than using LC_CTYPE=C.

We don't want to assume a UTF-8 capable terminal in this case and only
do so, if LANG, LC_ALL and LC_CTYPE are unset.

8 years agoupdate
Lennart Poettering [Tue, 16 Jul 2013 16:25:52 +0000 (18:25 +0200)]

8 years agorpm: add RPM macro for creating tmpfiles entries after package installation
Lennart Poettering [Tue, 16 Jul 2013 16:15:48 +0000 (18:15 +0200)]
rpm: add RPM macro for creating tmpfiles entries after package installation

8 years ago60-keyboard.hwdb: Fix syntax error
Martin Pitt [Tue, 16 Jul 2013 16:44:30 +0000 (18:44 +0200)]
60-keyboard.hwdb: Fix syntax error

Add missing '='.

8 years agojournal: return -ECHILD after a fork
Zbigniew Jędrzejewski-Szmek [Wed, 26 Jun 2013 23:55:48 +0000 (19:55 -0400)]
journal: return -ECHILD after a fork

A few asserts are replaced with 'return -EINVAL'. I think that
assert should not be used to check argument in public functions.

Fields in struct sd_journal are rearranged to make it less

8 years agotest-tables: allow sparse tables and check mapping for -1
Zbigniew Jędrzejewski-Szmek [Tue, 16 Jul 2013 16:01:01 +0000 (12:01 -0400)]
test-tables: allow sparse tables and check mapping for -1

Jan: test-tables fails on my system. The one it's failing on is:
    syscall: 222 → (null) → -1
... and indeed, our own tables should not have holes, but syscall
tables certainly might.

8 years agoDo not set LANG=C in every child environment.
Harald Hoyer [Thu, 27 Jun 2013 09:26:35 +0000 (11:26 +0200)]
Do not set LANG=C in every child environment.

LANG does not have to be set and setting it to default to the default
does not add any value.

8 years agoman: improve readability of --output options in journalctl(1)
Jason St. John [Tue, 16 Jul 2013 08:20:03 +0000 (10:20 +0200)]
man: improve readability of --output options in journalctl(1)

The list and descriptions of valid output options was difficult to read,
so break up the long block of text into discrete man page list items to
improve readability.

8 years agoman: use HTTPS links for links that support it
Jason St. John [Tue, 16 Jul 2013 08:19:00 +0000 (10:19 +0200)]
man: use HTTPS links for links that support it

8 years agojournalctl: Add support for showing messages from a previous boot
Jan Janssen [Fri, 28 Jun 2013 15:26:30 +0000 (17:26 +0200)]
journalctl: Add support for showing messages from a previous boot


I redid the boot ID look up to use enumerate_unique.

This is quite fast if the cache is warm but painfully slow if
it isn't. It has a slight chance of returning the wrong order if
realtime clock jumps around.

This one has to do n searches for every boot ID there is plus
a sort, so it depends heavily on cache hotness. This is in contrast
to the other way of look-up through filtering by a MESSAGE_ID,
which only needs about 1 seek + whatever amount of relative IDs
you want to walk.

I also have a linked-list + (in-place) mergesort version of this
patch, which has pretty much the same runtime. But since this one
is using libc sorting and armortized allocation, I prefer this

To summarize: The MESSAGE_ID way is a *lot* faster but can be
incomplete due to rotation, while the enumerate+sort will find
every boot ID out there but will be painfully slow for large
journals and cold caches.

You choose :P


8 years agoupdate TODO
Lennart Poettering [Tue, 16 Jul 2013 15:34:33 +0000 (17:34 +0200)]
update TODO

8 years agokeymap: re-add Logitech USB corded/cordless models
Martin Pitt [Tue, 16 Jul 2013 14:53:35 +0000 (16:53 +0200)]
keymap: re-add Logitech USB corded/cordless models

These add back are the remaining 3 udev keymap rules which used name based
instead of ID based matching.

8 years agoalso remove keymaps-force-release directory
Kay Sievers [Tue, 16 Jul 2013 14:26:49 +0000 (16:26 +0200)]
also remove keymaps-force-release directory

8 years agoswitch from udev keymaps to hwdb
Kay Sievers [Tue, 16 Jul 2013 14:13:32 +0000 (16:13 +0200)]
switch from udev keymaps to hwdb

8 years agodetect-virt: detect User-Mode Linux
Ramkumar Ramachandra [Tue, 16 Jul 2013 11:14:40 +0000 (16:44 +0530)]
detect-virt: detect User-Mode Linux

In a User-Mode Linux session:

  $ systemd-detect-virt

Although it is possible to reliably detect virtualization:

  $ cat /proc/cpuinfo
  processor       : 0
  vendor_id       : User Mode Linux
  model name      : UML
  mode            : skas
  host            : Linux kytes 3.11.0-rc1-00009-ge5fd680 (...)
  bogomips        : 7007.43

So, grep for the string "\nvendor_id\t: User Mode Linux\n" in
/proc/cpuinfo, and say "uml" when asked.

8 years agoUpdate TODO
Lennart Poettering [Tue, 16 Jul 2013 12:27:20 +0000 (14:27 +0200)]
Update TODO

8 years agohwdb: follow: "keymap: Drop non-existant Samsung 900XC3"
Kay Sievers [Tue, 16 Jul 2013 12:13:55 +0000 (14:13 +0200)]
hwdb: follow: "keymap: Drop non-existant Samsung 900XC3"

8 years agokeymap: Drop non-existant Samsung 900XC3
Martin Pitt [Tue, 16 Jul 2013 07:06:57 +0000 (09:06 +0200)]
keymap: Drop non-existant Samsung 900XC3

Revert commit 90fc91d0065 again. There is no 900XC3 model, that's 900X3C and
already covered by the 900X3* match.


8 years agobuild-sys: make generated man pages part of the distribution tarball
Zbigniew Jędrzejewski-Szmek [Tue, 16 Jul 2013 03:13:12 +0000 (23:13 -0400)]
build-sys: make generated man pages part of the distribution tarball

They were removed by mistake, and since we ship .html files,
we certainly should ship man pages.

8 years agobuild-sys: discover the path to kexec during build time
Zbigniew Jędrzejewski-Szmek [Tue, 16 Jul 2013 03:04:52 +0000 (23:04 -0400)]
build-sys: discover the path to kexec during build time

8 years agojournal: add logging of effective capabilities _CAP_EFFECTIVE
Shawn Landden [Tue, 16 Jul 2013 01:10:56 +0000 (18:10 -0700)]
journal: add logging of effective capabilities _CAP_EFFECTIVE

I think this is the most important of the capabilities bitmasks to log.

8 years agoupdate TODO
Lennart Poettering [Tue, 16 Jul 2013 01:30:45 +0000 (03:30 +0200)]
update TODO

8 years agoman: add FILES section to systemd-journald.service(8)
Zbigniew Jędrzejewski-Szmek [Tue, 16 Jul 2013 02:20:06 +0000 (22:20 -0400)]
man: add FILES section to systemd-journald.service(8)

8 years agosystemd: do not output status messages once gettys are running
Zbigniew Jędrzejewski-Szmek [Tue, 16 Jul 2013 01:34:57 +0000 (21:34 -0400)]
systemd: do not output status messages once gettys are running

Make Type=idle communication bidirectional: when bootup is finished,
the manager, as before, signals idling Type=idle jobs to continue.
However, if the boot takes too long, idling jobs signal the manager
that they have had enough, wait a tiny bit more, and continue, taking
ownership of the console. The manager, when signalled that Type=idle
jobs are done, makes a note and will not write to the console anymore.

This is a cosmetic issue, but quite noticable, so let's just fix it.

Based on Harald Hoyer's patch.

8 years agoman: add note about paging and colors to journalctl(1)
Zbigniew Jędrzejewski-Szmek [Tue, 16 Jul 2013 01:03:17 +0000 (21:03 -0400)]
man: add note about paging and colors to journalctl(1)

8 years agocryptsetup: Add tcrypt support
Jan Janssen [Sat, 13 Jul 2013 11:19:38 +0000 (13:19 +0200)]
cryptsetup: Add tcrypt support

Tcrypt uses a different approach to passphrases/key files. The
passphrase and all key files are incorporated into the "password"
to open the volume. So, the idea of slots that provide a way to
open the volume with different passphrases/key files that are
independent from each other like with LUKS does not apply.

Therefore, we use the key file from /etc/crypttab as the source
for the passphrase. The actual key files that are combined with
the passphrase into a password are provided as a new option in
/etc/crypttab and can be given multiple times if more than one
key file is used by a volume.

8 years agocryptsetup: Move attaching of the device out of main
Jan Janssen [Sat, 13 Jul 2013 11:19:37 +0000 (13:19 +0200)]
cryptsetup: Move attaching of the device out of main

8 years agocryptsetup: Move password query out of main
Jan Janssen [Sat, 13 Jul 2013 11:19:36 +0000 (13:19 +0200)]
cryptsetup: Move password query out of main

Also use _cleanup_free_ where possible.

8 years agoutil: recognize 'ncp' as an alias to 'ncpfs'
Frederic Crozat [Mon, 15 Jul 2013 16:33:57 +0000 (18:33 +0200)]
util: recognize 'ncp' as an alias to 'ncpfs'

ncp is also used for Netware mount point, recognize it as such. Fixes

8 years agoupdate TODO
Lennart Poettering [Mon, 15 Jul 2013 21:54:28 +0000 (23:54 +0200)]
update TODO

8 years agoupdate TODO
Lennart Poettering [Fri, 12 Jul 2013 17:47:08 +0000 (19:47 +0200)]
update TODO

8 years agotravis: Add a travis.yml for doing CI after commits
Holger Hans Peter Freyther [Tue, 9 Jul 2013 16:09:08 +0000 (18:09 +0200)]
travis: Add a travis.yml for doing CI after commits

Instruct travis-ci to build systemd and create a tarball. In case
of an error travis-ci will complain on IRC. The systemd testsuite
currently requires the host to have a recent version of systemd
installed and running. This is not the case for the Ubuntu VM of
travis-ci. This means make check and make distcheck will result in
a build failure and to avoid this these commands are not executed.

This requires a one time configuration on travis-ci for the repo
on github by the owner of the repo.

8 years agotests: add more tests for shared/util.c
Thomas Hindoe Paaboel Andersen [Mon, 15 Jul 2013 22:07:36 +0000 (00:07 +0200)]
tests: add more tests for shared/util.c

8 years agojournalctl: add --force option to recreate FSS
Shawn Landden [Mon, 15 Jul 2013 03:13:09 +0000 (20:13 -0700)]
journalctl: add --force option to recreate FSS

8 years agosystemd: fix NULL dereference when disabling a nonexistent instance
Zbigniew Jędrzejewski-Szmek [Mon, 15 Jul 2013 03:36:14 +0000 (23:36 -0400)]
systemd: fix NULL dereference when disabling a nonexistent instance

Assertion 'p' failed at src/shared/path-util.c:51, function path_get_file_name(). Aborting.

The unit file could not be found, and i->path would not be set.
In 02b9e969 a code path was added which attempts to remove symlinks
to a nonexistent (removed) unit file. This worked OK in case of
non-instance services, but broke in the case of instance services.

Behaviour wrt. to instance units is changed in the way that 02b9e969
changed it for non-instance units: it is now possible to remove
instance symlinks to a template unit that has been removed.

This patch isn't a full fix, because the behaviour wrt. to enabling
and disabling instance units is still broken: e.g it is possible to
start autovt@tty5.service, but it is not possible to enable it,
because autovt@.service is a symlink, and on the other hand, disabling
getty@tty5.service removes all symlinks to getty@.service, which is
wrong too. But segfaults make bad pr, so let's add at least this
partial fix for now.

8 years agohwdb: keyboard update
Kay Sievers [Sun, 14 Jul 2013 22:56:18 +0000 (00:56 +0200)]
hwdb: keyboard update

8 years agohwdb: import data
Kay Sievers [Sun, 14 Jul 2013 22:55:37 +0000 (00:55 +0200)]
hwdb: import data

8 years agoman: tweak WantedBy=/RequiredBy= description a bit
Zbigniew Jędrzejewski-Szmek [Sun, 14 Jul 2013 03:36:39 +0000 (23:36 -0400)]
man: tweak WantedBy=/RequiredBy= description a bit

8 years agotest: add trivial test for syscall table and extend table tests to error paths
Zbigniew Jędrzejewski-Szmek [Sat, 13 Jul 2013 21:36:03 +0000 (17:36 -0400)]
test: add trivial test for syscall table and extend table tests to error paths

8 years agoAdd test coverage and generate report with lcov
Thomas H.P. Andersen [Thu, 28 Mar 2013 13:54:06 +0000 (14:54 +0100)]
Add test coverage and generate report with lcov

Enable coverage with --enable-coverage.
"make coverage" will create the report locally,
"make coverage-sync" will upload the report to

Requires lcov version 1.10 to handle naming in systemd and to
use the --no-external option.

[zj: make the coverage at least generate something with
     separate build dir, simplify rules a bit: all errors
     are mine. ]

8 years agounits: do not special-case getty@tty1.service installation
Zbigniew Jędrzejewski-Szmek [Sat, 13 Jul 2013 13:59:35 +0000 (09:59 -0400)]
units: do not special-case getty@tty1.service installation

Since a long while we can use "systemctl enable getty@tty1.service"
which does the right thing, so there's no need to abuse Alias=
for installation.

8 years agoinstall: make "reenable" work with templated units
Ross Lagerwall [Mon, 17 Jun 2013 18:11:50 +0000 (19:11 +0100)]
install: make "reenable" work with templated units

Before, "systemctl reenable getty@tty1.service" would fail with:
Failed to issue method call: File exists
To fix this, reimplement "reenable" explicitly as a disable followed by
an enable.
This is shorter and is how the man page documents its behavior.

8 years agoman: wording and grammar update
Jan Engelhardt [Sat, 13 Jul 2013 08:51:35 +0000 (10:51 +0200)]
man: wording and grammar update

8 years agojournalctl: have a useful --setup-keys error message when using non-persistant logging
Shawn Landden [Sat, 13 Jul 2013 03:57:15 +0000 (20:57 -0700)]
journalctl: have a useful --setup-keys error message when using non-persistant logging

Generating seed...

Generating key pair...
Generating sealing key...
Failed to open /var/log/journal/33f46101703a10c5fc6fa4f451840101/fss.tmp.k2wDDU: No such file or directory

8 years agostatic-nodes: don't hardcode path to mkdir
Tom Gundersen [Fri, 12 Jul 2013 09:14:54 +0000 (11:14 +0200)]
static-nodes: don't hardcode path to mkdir

8 years agoRevert "build-sys: don't enable color gcc on dumb terminals"
Zbigniew Jędrzejewski-Szmek [Fri, 12 Jul 2013 17:19:19 +0000 (13:19 -0400)]
Revert "build-sys: don't enable color gcc on dumb terminals"

This reverts commit cd3069559a09b4e4f85a6f02aa8f0521f48359ca.

Emacs compilation can be fixed by putting
 '(compilation-environment (quote ("GCC_COLORS="))))
in ~/.emacs.

8 years agoshared/install: fix trivial memleak
Zbigniew Jędrzejewski-Szmek [Fri, 12 Jul 2013 12:15:21 +0000 (08:15 -0400)]
shared/install: fix trivial memleak

We lost the reference when setting path second time.

8 years agotest-path-util,test-sched-prio: uninitialize manager to appease valgrind
Zbigniew Jędrzejewski-Szmek [Fri, 12 Jul 2013 12:04:39 +0000 (08:04 -0400)]
test-path-util,test-sched-prio: uninitialize manager to appease valgrind

8 years agohwdb: keyboard -- update comments
Kay Sievers [Fri, 12 Jul 2013 11:44:08 +0000 (13:44 +0200)]
hwdb: keyboard -- update comments

8 years agohwdb: keyboard -- add file
Kay Sievers [Fri, 12 Jul 2013 10:20:18 +0000 (12:20 +0200)]
hwdb: keyboard -- add file

Do not enable/install it now, until we switch over from the current
keymap tool.

8 years agoman: document the slice and scope units, add systemd.cgroup(5)
Zbigniew Jędrzejewski-Szmek [Wed, 10 Jul 2013 05:25:02 +0000 (01:25 -0400)]
man: document the slice and scope units, add systemd.cgroup(5)

8 years agoman: use <literal> not <filename> for suffixes
Zbigniew Jędrzejewski-Szmek [Fri, 12 Jul 2013 03:39:27 +0000 (23:39 -0400)]
man: use <literal> not <filename> for suffixes

Especially sentences like "filename ends in .suffix" are easier to
parse if the suffix is surrounded by quotes. In sentences like
"requires a .service unit", where the suffix is used as a class
designation, there is no need to use quotes.