chiark / gitweb /
elogind.git
11 years agokeymap: add --version option
Zbigniew Jędrzejewski-Szmek [Tue, 17 Jul 2012 05:31:48 +0000 (07:31 +0200)]
keymap: add --version option

11 years agosystemd: add --version option
Zbigniew Jędrzejewski-Szmek [Tue, 17 Jul 2012 05:31:47 +0000 (07:31 +0200)]
systemd: add --version option

systemd --version mirrors systemctl --version:

$ ./systemd --version
systemd 186
other
+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT -LIBCRYPTSETUP

This information can be retrieved by other means (systemctl, etc.),
but it's easier for a newbie if 'systemd --version' says something
useful. And 'systemd --help' is already there, so let's complement
that with '--version'.

11 years agoupdate TODO
Lennart Poettering [Tue, 17 Jul 2012 14:29:40 +0000 (16:29 +0200)]
update TODO

11 years agobuild-sys: distcheck - add seccomp*.h to SOURCES
Kay Sievers [Tue, 17 Jul 2012 14:03:50 +0000 (16:03 +0200)]
build-sys: distcheck - add seccomp*.h to SOURCES

11 years agobuild-sys: use C preprocessor for key list, too
Lennart Poettering [Tue, 17 Jul 2012 13:55:53 +0000 (15:55 +0200)]
build-sys: use C preprocessor for key list, too

11 years agoexecute: free syscall filter array after use
Lennart Poettering [Tue, 17 Jul 2012 13:55:23 +0000 (15:55 +0200)]
execute: free syscall filter array after use

11 years agogitignore: tags files
Zbigniew Jędrzejewski-Szmek [Tue, 17 Jul 2012 06:30:58 +0000 (08:30 +0200)]
gitignore: tags files

11 years agobuild-sys: automake needs to know about generated files
Zbigniew Jędrzejewski-Szmek [Tue, 17 Jul 2012 06:30:38 +0000 (08:30 +0200)]
build-sys: automake needs to know about generated files

CC     src/core/libsystemd_core_la-syscall-list.lo
src/core/syscall-list.c:31:29: fatal error: syscall-to-name.h: No such file or directory

11 years agoexecute: support syscall filtering using seccomp filters
Lennart Poettering [Tue, 17 Jul 2012 02:17:53 +0000 (04:17 +0200)]
execute: support syscall filtering using seccomp filters

11 years agojournal: actually set archived files to archived state
Lennart Poettering [Mon, 16 Jul 2012 22:55:02 +0000 (00:55 +0200)]
journal: actually set archived files to archived state

11 years agojournalctl: decode more header files in --header
Lennart Poettering [Mon, 16 Jul 2012 22:52:43 +0000 (00:52 +0200)]
journalctl: decode more header files in --header

11 years agojournal: size journal data hash table based on maximum file size metrics
Lennart Poettering [Mon, 16 Jul 2012 22:36:15 +0000 (00:36 +0200)]
journal: size journal data hash table based on maximum file size metrics

The default of 2047 hash table entries turned out to result in way too
many collisions for bigger files, hence scale the hash table size by the
estimated maximum file size.

11 years agojournal: immediately rotate when the journal was previously not closed properly
Lennart Poettering [Mon, 16 Jul 2012 20:51:28 +0000 (22:51 +0200)]
journal: immediately rotate when the journal was previously not closed properly

11 years agojournal: automatically rotate journal files if the data hash table is full > 75%
Lennart Poettering [Mon, 16 Jul 2012 20:24:02 +0000 (22:24 +0200)]
journal: automatically rotate journal files if the data hash table is full > 75%

Previously, when the main data hash table grows too full the performance
simply started to decrease drastically. Instead, now simply rotate to a
new journal file as the hash table gets to full, so that we can start
with a new fresh empty hash table.

11 years agomake-man-index.py: pretty-print HTML
Kay Sievers [Mon, 16 Jul 2012 19:27:06 +0000 (21:27 +0200)]
make-man-index.py: pretty-print HTML

11 years agojournal: use tail/head timestamps from header for cutoff logic
Lennart Poettering [Mon, 16 Jul 2012 17:28:05 +0000 (19:28 +0200)]
journal: use tail/head timestamps from header for cutoff logic

We have them, they are faster to use them, so use them...

11 years agojournald: don't enforce monotonicity of realtime clocks when copying entries
Lennart Poettering [Mon, 16 Jul 2012 17:26:54 +0000 (19:26 +0200)]
journald: don't enforce monotonicity of realtime clocks when copying entries

After all the point of the realtime clock (in contrast to the monotonic
clock) is that it does not have to be strictly monotonic, hence don't
enforce this when flushing the journal from /run to /var.

11 years agoman: actually generate h2 headers for letters in index as we meant to
Lennart Poettering [Mon, 16 Jul 2012 17:26:08 +0000 (19:26 +0200)]
man: actually generate h2 headers for letters in index as we meant to

11 years agocore: fix name of dbus call parameter
Lennart Poettering [Mon, 16 Jul 2012 17:11:27 +0000 (19:11 +0200)]
core: fix name of dbus call parameter

11 years agoman: include number of man pages in index page
Lennart Poettering [Mon, 16 Jul 2012 17:11:10 +0000 (19:11 +0200)]
man: include number of man pages in index page

11 years agobuild-sys: make building of index.html fail sensibly
Lennart Poettering [Mon, 16 Jul 2012 17:10:57 +0000 (19:10 +0200)]
build-sys: make building of index.html fail sensibly

11 years agoman: set description in italics in the index
Lennart Poettering [Mon, 16 Jul 2012 16:10:18 +0000 (18:10 +0200)]
man: set description in italics in the index

11 years agoman: reword man page titles
Lennart Poettering [Mon, 16 Jul 2012 16:08:25 +0000 (18:08 +0200)]
man: reword man page titles

Make sure the man page titles are similar in style and capitalization so
that our man page index looks pretty.

11 years agoman: show man page summary in index, too
Lennart Poettering [Mon, 16 Jul 2012 15:39:26 +0000 (17:39 +0200)]
man: show man page summary in index, too

11 years agomin: generate an index page for all man pages
Lennart Poettering [Mon, 16 Jul 2012 15:19:39 +0000 (17:19 +0200)]
min: generate an index page for all man pages

This makes use of python, if it is available

11 years agounit: set default working directory to the user's home directory when running in...
Lennart Poettering [Mon, 16 Jul 2012 10:44:42 +0000 (12:44 +0200)]
unit: set default working directory to the user's home directory when running in user mode

11 years agounit: introduce %s specifier for the user shell
Lennart Poettering [Mon, 16 Jul 2012 10:34:54 +0000 (12:34 +0200)]
unit: introduce %s specifier for the user shell

11 years agounit: printf specifiers %u and %h: $USER and $HOME.
Auke Kok [Sat, 14 Jul 2012 05:28:43 +0000 (22:28 -0700)]
unit: printf specifiers %u and %h: $USER and $HOME.

These printf specifiers allow us to refer to $HOME and $USER
in unit files. These are particularly helpful in instanced
units that have "User=" set, and in systemd --user domains.

The specifiers will return the pw_name and pw_dir fields
if the unit file has a User= field.

If the unit file does not have a User= field, the value
substituted is either $USER or $HOME from the environment,
or, if unset, the values from pw_name or pw_dir.

This patch is somewhat after Ran Benita's original patch,
which didn't get merged. I've split up the 2 specifiers
and extended them to do what is logically expected from
these specifiers.

Note that expansion is done at `start` time, not after
the units are parsed. Using `systemctl show` will just
show the specifiers.

11 years agoutil: add getusername_malloc(), get_shell(), get_home_dir()
Lennart Poettering [Mon, 16 Jul 2012 10:15:22 +0000 (12:15 +0200)]
util: add getusername_malloc(), get_shell(), get_home_dir()

11 years agoSpelling fixes.
Ville Skyttä [Sun, 15 Jul 2012 08:41:40 +0000 (11:41 +0300)]
Spelling fixes.

11 years agoudev: get rid of TEST_PREFIX and use unshare() to fake /sys, /dev, /run
Kay Sievers [Sun, 15 Jul 2012 20:10:46 +0000 (22:10 +0200)]
udev: get rid of TEST_PREFIX and use unshare() to fake /sys, /dev, /run

11 years agointltool: skip the intermediate file in case it remains, not the source file
Kay Sievers [Sun, 15 Jul 2012 17:28:21 +0000 (19:28 +0200)]
intltool: skip the intermediate file in case it remains, not the source file

11 years agoupdate TODO
Kay Sievers [Sun, 15 Jul 2012 13:55:47 +0000 (15:55 +0200)]
update TODO

11 years agounit: avoid re-definition of enum for older gcc versions
Kay Sievers [Sun, 15 Jul 2012 13:53:43 +0000 (15:53 +0200)]
unit: avoid re-definition of enum for older gcc versions

<koen> | ./src/shared/unit-name.h:29:23: error: redefinition of typedef 'UnitType'
<koen> | ./src/core/unit.h:30:23: note: previous declaration of 'UnitType' was here

11 years agobuild-sys: fix "make distcheck"
Kay Sievers [Sun, 15 Jul 2012 13:48:26 +0000 (15:48 +0200)]
build-sys: fix "make distcheck"

11 years agoaquire_terminal(): fix uninitialized variable
Kay Sievers [Sun, 15 Jul 2012 13:34:22 +0000 (15:34 +0200)]
aquire_terminal(): fix uninitialized variable

./src/shared/util.c:2457:45: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]

11 years agojournal: align byte-buffer that gets cased to an object
Kay Sievers [Sun, 15 Jul 2012 12:58:29 +0000 (14:58 +0200)]
journal: align byte-buffer that gets cased to an object

On Sun, Jul 15, 2012 at 2:00 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
> | src/journal/sd-journal.c: In function 'sd_journal_process':
> | src/journal/sd-journal.c:1891:21: warning: cast increases required alignment of target type [-Wcast-align]
> | src/journal/sd-journal.c:1900:29: warning: cast increases required alignment of target type [-Wcast-align]

11 years agojournal: avoid re-definition of enums for older gcc versions
Kay Sievers [Sun, 15 Jul 2012 12:56:57 +0000 (14:56 +0200)]
journal: avoid re-definition of enums for older gcc versions

On Sun, Jul 15, 2012 at 2:00 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
> | In file included from src/journal/sd-journal.c:37:0:
> | src/journal/journal-internal.h:47:3: error: redefinition of typedef 'MatchType'
> | src/journal/journal-internal.h:36:24: note: previous declaration of 'MatchType' was here
> | src/journal/journal-internal.h:67:3: error: redefinition of typedef 'LocationType'
> | src/journal/journal-internal.h:37:27: note: previous declaration of 'LocationType' was here

11 years agorules: fix typo in 42-usb-hid-pm.rules
Kay Sievers [Fri, 13 Jul 2012 22:50:49 +0000 (00:50 +0200)]
rules: fix typo in 42-usb-hid-pm.rules

<arjan> can you open the 42-usb-hid-pm.rules file
<arjan> and go to line 46
<arjan> and tell me why ATTR{idProduct}="0002" only has one = and not two (e.g. == ) ?
<kay> arjan: yep
<kay> arjan: bug

11 years agoudev: avoid creating /dev/kmsg with fopen() to support CONFIG_PRINTK=n
Kay Sievers [Fri, 13 Jul 2012 22:32:47 +0000 (00:32 +0200)]
udev: avoid creating /dev/kmsg with fopen() to support CONFIG_PRINTK=n

11 years agobuild-sys: fix build
Lennart Poettering [Fri, 13 Jul 2012 21:38:32 +0000 (23:38 +0200)]
build-sys: fix build

11 years agounit: rename BindTo= to BindsTo=
Lennart Poettering [Fri, 13 Jul 2012 21:34:40 +0000 (23:34 +0200)]
unit: rename BindTo= to BindsTo=

all other dependencies are in 3rd person. Change BindTo= accordingly to
BindsTo=.

Of course, the dependency is widely used, hence we parse the old name
too for compatibility.

11 years agoman: add man page aliases for all macros/types too
Lennart Poettering [Fri, 13 Jul 2012 21:10:23 +0000 (23:10 +0200)]
man: add man page aliases for all macros/types too

11 years agoman: Split sd_randomize(3) from sd_id128_get_{machine,boot}(3)
Lennart Poettering [Fri, 13 Jul 2012 20:55:52 +0000 (22:55 +0200)]
man: Split sd_randomize(3) from sd_id128_get_{machine,boot}(3)

They have too little to do with each other...

11 years agobuild-sys: don't install sd-readahead.h as include file, but as documentation
Lennart Poettering [Fri, 13 Jul 2012 20:47:46 +0000 (22:47 +0200)]
build-sys: don't install sd-readahead.h as include file, but as documentation

sd-readahead.h is supposed to be a drop-in API, nothing people should
ever link to or could make use without also adding sd-readahead.c to
their sources. Hence, don't install this header file into INCLUDES, but
instead install it as DOCS.

11 years agoman: document sd_journal_seek_head()
Lennart Poettering [Fri, 13 Jul 2012 20:39:02 +0000 (22:39 +0200)]
man: document sd_journal_seek_head()

11 years agoman: document sd_journal_add_match()
Lennart Poettering [Fri, 13 Jul 2012 20:18:17 +0000 (22:18 +0200)]
man: document sd_journal_add_match()

11 years agoshutdown: add missing include
Lennart Poettering [Fri, 13 Jul 2012 19:54:28 +0000 (21:54 +0200)]
shutdown: add missing include

11 years agoman: fix various typos
Lennart Poettering [Fri, 13 Jul 2012 19:54:19 +0000 (21:54 +0200)]
man: fix various typos

11 years agoman: suppress man page dates/authors in generated pages
Lennart Poettering [Fri, 13 Jul 2012 19:54:03 +0000 (21:54 +0200)]
man: suppress man page dates/authors in generated pages

11 years agobuild-sys: clean man pages when building them
Lennart Poettering [Fri, 13 Jul 2012 19:53:44 +0000 (21:53 +0200)]
build-sys: clean man pages when building them

11 years agoman: forgot sd_journal_get_fd() man page
Lennart Poettering [Fri, 13 Jul 2012 19:04:38 +0000 (21:04 +0200)]
man: forgot sd_journal_get_fd() man page

11 years agoman: document sd_journal_get_fd()
Lennart Poettering [Fri, 13 Jul 2012 19:03:58 +0000 (21:03 +0200)]
man: document sd_journal_get_fd()

11 years agoman: document sd_journal_get_cursor()
Lennart Poettering [Fri, 13 Jul 2012 18:39:05 +0000 (20:39 +0200)]
man: document sd_journal_get_cursor()

11 years agoman: document sd_journal_get_cutoff_realtime_usec()
Lennart Poettering [Fri, 13 Jul 2012 18:17:37 +0000 (20:17 +0200)]
man: document sd_journal_get_cutoff_realtime_usec()

11 years agoman: document sd_journal_get_realtime_usec()
Lennart Poettering [Fri, 13 Jul 2012 17:32:11 +0000 (19:32 +0200)]
man: document sd_journal_get_realtime_usec()

11 years agoman: document sd_journal_get_data() and friends
Lennart Poettering [Fri, 13 Jul 2012 17:00:48 +0000 (19:00 +0200)]
man: document sd_journal_get_data() and friends

11 years agoman: document sd_journal_next()
Lennart Poettering [Fri, 13 Jul 2012 16:28:08 +0000 (18:28 +0200)]
man: document sd_journal_next()

11 years agoman: document sd_journal_open()
Lennart Poettering [Fri, 13 Jul 2012 13:49:34 +0000 (15:49 +0200)]
man: document sd_journal_open()

11 years agolog: correct usage of logging API at a few places
Lennart Poettering [Fri, 13 Jul 2012 13:45:45 +0000 (15:45 +0200)]
log: correct usage of logging API at a few places

11 years agomain: only reopen /dev/console if we switch-root to a custom init
Harald Hoyer [Fri, 13 Jul 2012 12:44:52 +0000 (14:44 +0200)]
main: only reopen /dev/console if we switch-root to a custom init

There's no point in reopening /dev/console if we reopen it anyway
afterwards.

11 years agocontainer: when shutting down in a container don't detach loop devices
Lennart Poettering [Fri, 13 Jul 2012 12:42:25 +0000 (14:42 +0200)]
container: when shutting down in a container don't detach loop devices

We don't do device handling in containers, hence no loop devices either.

11 years agocore: go on a killing spree when transitioning from initrd to main system
Lennart Poettering [Fri, 13 Jul 2012 12:41:57 +0000 (14:41 +0200)]
core: go on a killing spree when transitioning from initrd to main system

11 years agoutil: temporarily ignore SIGHUP while we are issuing TIOCSTTY
Lennart Poettering [Fri, 13 Jul 2012 11:55:35 +0000 (13:55 +0200)]
util: temporarily ignore SIGHUP while we are issuing TIOCSTTY

11 years agotest: hook up more tests with make check
Lennart Poettering [Fri, 13 Jul 2012 11:50:39 +0000 (13:50 +0200)]
test: hook up more tests with make check

11 years agoutil: rename join() to strjoin()
Lennart Poettering [Fri, 13 Jul 2012 11:41:01 +0000 (13:41 +0200)]
util: rename join() to strjoin()

This is to match strappend() and the other string related functions.

11 years agoman: fix man page chapter in Makefile.am
Lennart Poettering [Fri, 13 Jul 2012 00:19:07 +0000 (02:19 +0200)]
man: fix man page chapter in Makefile.am

11 years agoman: document sd_journal_stream_fd()
Lennart Poettering [Fri, 13 Jul 2012 00:18:45 +0000 (02:18 +0200)]
man: document sd_journal_stream_fd()

11 years agoman: move header file man pages from section 7 to 3
Lennart Poettering [Thu, 12 Jul 2012 23:50:05 +0000 (01:50 +0200)]
man: move header file man pages from section 7 to 3

This way we can include documentation about minor macros/inline function
within the introducionary man page in a sane way.

11 years agojournal: properly export sd_journal_add_disjunction()
Lennart Poettering [Thu, 12 Jul 2012 23:16:15 +0000 (01:16 +0200)]
journal: properly export sd_journal_add_disjunction()

11 years agojournalctl: show any printable Unicode character
Zbigniew Jędrzejewski-Szmek [Thu, 12 Jul 2012 23:07:41 +0000 (01:07 +0200)]
journalctl: show any printable Unicode character

This makes sure we are OK in outputting all valid, non-control UTF-8
characters, instead of just printable 7bit ASCII.

11 years agoupdate TODO
Lennart Poettering [Thu, 12 Jul 2012 22:32:21 +0000 (00:32 +0200)]
update TODO

11 years agojournal: beef up journal matches considerably
Lennart Poettering [Thu, 12 Jul 2012 22:29:26 +0000 (00:29 +0200)]
journal: beef up journal matches considerably

we now can take multiple matches, and they will apply as AND if they
apply to different fields and OR if they apply to the same fields. Also,
terms of this kind can be combined with an overreaching OR.

11 years agojournal: check fields we search for more carefully
Lennart Poettering [Thu, 12 Jul 2012 22:10:37 +0000 (00:10 +0200)]
journal: check fields we search for more carefully

11 years agojournal: fix seeking by realtime/seqnum
Lennart Poettering [Thu, 12 Jul 2012 15:36:51 +0000 (17:36 +0200)]
journal: fix seeking by realtime/seqnum

11 years agojournal: fix bad memory access
Lennart Poettering [Thu, 12 Jul 2012 15:36:24 +0000 (17:36 +0200)]
journal: fix bad memory access

11 years agojournal: fix bisection logic for first entry
Lennart Poettering [Thu, 12 Jul 2012 15:36:04 +0000 (17:36 +0200)]
journal: fix bisection logic for first entry

11 years agojournal: fix interleaving of files with different time sources
Lennart Poettering [Thu, 12 Jul 2012 15:35:04 +0000 (17:35 +0200)]
journal: fix interleaving of files with different time sources

11 years agobuild-sys: avoid duplicate inclusion of log.c in tools
Lennart Poettering [Wed, 11 Jul 2012 22:06:24 +0000 (00:06 +0200)]
build-sys: avoid duplicate inclusion of log.c in tools

Before: shared code such as log.c was linked once into the public
libraries (where it is entirely hidden) and once into the various tools
which might use those libraries. This is suboptimal, as this way static
variables such as the maximum log level are instantiated twice in all
tools.

After: our build the public libraries a second time, as a convenience
libary, and link our tools against those. Hence all tools use only a
single instance of everything.

11 years agoupdate TODO
Kay Sievers [Wed, 11 Jul 2012 01:32:28 +0000 (03:32 +0200)]
update TODO

11 years agoupdate TODO
Lennart Poettering [Wed, 11 Jul 2012 00:45:00 +0000 (02:45 +0200)]
update TODO

11 years agojournal: replace implicit flushing of journal by explicit one
Lennart Poettering [Wed, 11 Jul 2012 00:41:16 +0000 (02:41 +0200)]
journal: replace implicit flushing of journal by explicit one

The old automatism that the flushing of the journal from /run to /var
was triggered by the appearance of /var/log/journal is broken if that
directory is mounted from another host and hence always available to be
useful as mount point. To avoid probelsm with this, introduce a new unit
that is explicitly orderer after all mounte files systems and triggers
the flushing.

11 years agojournalctl: add a marker to log output for reboots
Lennart Poettering [Tue, 10 Jul 2012 23:36:55 +0000 (01:36 +0200)]
journalctl: add a marker to log output for reboots

With this we'll print a marker "----- Reboot -----" between two
subsequent lines with different boot IDs.

11 years agojournal: rework directory enumeration/watch logic
Lennart Poettering [Tue, 10 Jul 2012 23:08:38 +0000 (01:08 +0200)]
journal: rework directory enumeration/watch logic

There's now sd_journal_new_directory() for watching specific journal
directories. This is exposed in journalctl -D.

sd_journal_wait() and sd_journal_process() now return whether changes in
the journal are invalidating or just appending.

We now create inotify kernel watches only when we actually need them

11 years agojournal: introduce sd_journal_wait() to simplify writing synchronous clients
Lennart Poettering [Tue, 10 Jul 2012 19:46:11 +0000 (21:46 +0200)]
journal: introduce sd_journal_wait() to simplify writing synchronous clients

11 years agoupdate TODO
Lennart Poettering [Tue, 10 Jul 2012 17:44:19 +0000 (19:44 +0200)]
update TODO

11 years agojournald: use "persistent", not "permanent" as storage option
Lennart Poettering [Tue, 10 Jul 2012 17:39:27 +0000 (19:39 +0200)]
journald: use "persistent", not "permanent" as storage option

"permanent" is simply the wrong term and we use "persistant" in most
other contexts to correct this.

11 years agoupdate TODO
Lennart Poettering [Tue, 10 Jul 2012 17:36:29 +0000 (19:36 +0200)]
update TODO

11 years agoselinux: turn of libselinux' internal logging
Lennart Poettering [Tue, 10 Jul 2012 17:28:26 +0000 (19:28 +0200)]
selinux: turn of libselinux' internal logging

11 years agoupdate TODO
Lennart Poettering [Tue, 10 Jul 2012 17:20:30 +0000 (19:20 +0200)]
update TODO

11 years agoswitch-root: reopen /dev/console before we switch root
Lennart Poettering [Tue, 10 Jul 2012 17:19:59 +0000 (19:19 +0200)]
switch-root: reopen /dev/console before we switch root

11 years agoupdate TODO
Lennart Poettering [Tue, 10 Jul 2012 17:06:59 +0000 (19:06 +0200)]
update TODO

11 years agoutil: rm_rf() refuse cleaning non-memory file systems, as extra paranoia
Lennart Poettering [Tue, 10 Jul 2012 17:05:58 +0000 (19:05 +0200)]
util: rm_rf() refuse cleaning non-memory file systems, as extra paranoia

11 years agoutil: add extra safety check to in_initrd()
Lennart Poettering [Tue, 10 Jul 2012 16:46:26 +0000 (18:46 +0200)]
util: add extra safety check to in_initrd()

initrds can only be on tmpfs or ramfs, so check for that

11 years agomount: fix for complex automounts
Malte Starostik [Tue, 5 Jun 2012 19:10:28 +0000 (21:10 +0200)]
mount: fix for complex automounts

If accessing an automount point triggers more changes to
/proc/self/mountinfo than just to add the directly wanted mount, these
changes can lead to spurious -ENODEV notifications on the automount unit
causing the request to fail when in fact the mount will be setup right
afterwards.

11 years agoupdate TODO
Lennart Poettering [Tue, 10 Jul 2012 16:06:06 +0000 (18:06 +0200)]
update TODO

11 years agosystemctl: filter shown units by their load state
Zbigniew Jędrzejewski-Szmek [Tue, 10 Jul 2012 16:03:03 +0000 (18:03 +0200)]
systemctl: filter shown units by their load state

E.g. systemctl --all -t masked gives the list of masked units.

The -t/--type option is reused. This is possible because unit types
and unit load states are called differently, so it is possible to
distinguish what the user meant. Using the same option also means that
the interface is user for the user: less options to remember.

11 years agounit: Move UnitLoadState definitions from core/unit.c to shared/unit-name.c
Zbigniew Jędrzejewski-Szmek [Tue, 10 Jul 2012 15:18:09 +0000 (17:18 +0200)]
unit: Move UnitLoadState definitions from core/unit.c to shared/unit-name.c

This makes it possible to use them from systemctl without linking
against the core.

11 years agounit: get rid of UnitVTable.suffix, which is now unused
Lennart Poettering [Tue, 10 Jul 2012 15:04:42 +0000 (17:04 +0200)]
unit: get rid of UnitVTable.suffix, which is now unused

11 years agounit-name: remove unit_name_is_valid_no_type() and move unit_name_is_valid() to unit...
Lennart Poettering [Tue, 10 Jul 2012 15:03:11 +0000 (17:03 +0200)]
unit-name: remove unit_name_is_valid_no_type() and move unit_name_is_valid() to unit-name.h