Commit graph

9911 commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek 66870f90de systemd: use unit logging macros 2013-01-06 13:52:48 -05:00
Zbigniew Jędrzejewski-Szmek fdf9f9bbe4 journal: new logging macros to include UNIT=
Adding UNIT= to log lines allows them to be shown
in 'systemctl status' output, etc.

A new set of macros and functions is added. This allows for less
verbose notation than using log_struct() explicitly.

The set of logging functions is expanded to take a pair of arguments
(e.g. "UNIT=" and the RHS) which add an extra line to the structured
log entry. This can be used to add macros which add a different
identifier later on.
2013-01-06 13:52:48 -05:00
Zbigniew Jędrzejewski-Szmek d0aa9ce519 fstab-generator: modernize style 2013-01-06 13:52:48 -05:00
Zbigniew Jędrzejewski-Szmek 15f55e8092 core/path: modernize style 2013-01-06 13:52:47 -05:00
Zbigniew Jędrzejewski-Szmek 4f0eedb703 core/mount: modernize style 2013-01-06 13:52:47 -05:00
Zbigniew Jędrzejewski-Szmek f93891f3ec core/dbus-unit: modernize style 2013-01-06 13:52:47 -05:00
Zbigniew Jędrzejewski-Szmek bd0af84999 core/manager: modernize style 2013-01-06 13:52:47 -05:00
Zbigniew Jędrzejewski-Szmek 090cafa067 build-sys: use VALGRIND not __OPTIMIZE__ as condition for valgrind compat
Actually, one might want to run valgrind even on optimized code.
Now the same check is used in the jenkins hash functions and
hashtable.
2013-01-06 13:52:47 -05:00
Zbigniew Jędrzejewski-Szmek 24fdc23004 build-sys: use recipe for moving libs
Just avoids repeating the same code a few times.
The way that hooks are named is standardized.
No functional change.
2013-01-06 13:52:47 -05:00
Kay Sievers 772374a8c4 TODO: update 2013-01-06 19:14:56 +01:00
Kay Sievers d436eaf258 udev: fix net name rules matches 2013-01-06 17:05:10 +01:00
Kay Sievers a0169f00e5 analyze: add .gitignore 2013-01-06 16:18:48 +01:00
Kay Sievers 394e2938ff udev: enable persistent network device naming 2013-01-06 16:17:33 +01:00
Zbigniew Jędrzejewski-Szmek b86d11da80 build-sys: use full path to python in scripts
Commit c4eb236a2c didn't take into account the situation when the user
sets e.g. PYTHON=python3 (without the full path).  This value would
then be used verbatim for PYTHON_BINARY and in she-bang lines in
scripts, which is incorrect. To fix this, $PYTHON is passed through
which, which expands the path.  If $PYTHON_BINARY is desired which is
not installed on the build system, then PYTHON_BINARY must be set
separately.
2013-01-05 13:19:38 -05:00
Zbigniew Jędrzejewski-Szmek d66ee73a3d build-sys: fix message about gintrospection
When gobject-introspection-devel was not available, the message
was missing the yes/no part
2013-01-04 22:52:32 -05:00
Zbigniew Jędrzejewski-Szmek c4eb236a2c build-sys: invoke scripts with $PYTHON during build
Python binary to be used during compilation can be set with
./configure PYTHON=...

The she-bang line is removed, since it is not used anymore.
2013-01-04 22:22:21 -05:00
Zbigniew Jędrzejewski-Szmek 2f4da3e6c2 systemd-analyze: use specified binary, add --version
Python binary used in the she-bang line in installed
scripts can be set with ./configure PYTHON_BINARY=...
Defaults to the same path as python used during compilation.

Adding --version makes systemd-analyze behave consistently with the
rest of installed programs.

The lines in ./configure output are reordered to keep all yes/no lines
separate.  I think that this makes the output clearer.
2013-01-04 22:20:35 -05:00
Zbigniew Jędrzejewski-Szmek bbed6c0d4b systemd-analyze: pipe through SED_PROCESS
To be able to add --version and change python binary.
2013-01-04 21:57:55 -05:00
Zbigniew Jędrzejewski-Szmek a83ad683fd service: fixup after ifdef dropping
Commit 88516c0 removed one line too much.
2013-01-04 21:57:55 -05:00
Zbigniew Jędrzejewski-Szmek 0250d95659 systemd-analyze: reword comments 2013-01-04 21:57:55 -05:00
Zbigniew Jędrzejewski-Szmek 7f8e692bb2 build-sys: allow update-hwdb with seperate build dir 2013-01-04 21:57:55 -05:00
Zbigniew Jędrzejewski-Szmek e241dd66f1 build-sys: drop unused $RUNTIME_DIR 2013-01-04 21:13:16 -05:00
Lennart Poettering bc2708414b build-sys: drop all distribution specfic checks
Yay, we now have a completely generic systemd. No distribution specific checks anymore!
2013-01-04 23:26:21 +01:00
Lennart Poettering a382332eed build-sys: make path of loadkeys/setfont configurable in configure 2013-01-04 23:26:21 +01:00
Lennart Poettering 425c608d53 service: drop inserv.conf parsing
This Suse specific configuration file should really be done in a generator
that is shipped downstream by suse.
2013-01-04 23:26:21 +01:00
Lennart Poettering 88516c0c95 service: drop the per-distro ifdefs in service.c
They don't really hurt on other distros, and this allows us to ship
the same code on all distros
2013-01-04 23:26:21 +01:00
Lennart Poettering 7f0086f8c9 units: always use sulogin in rescue.service
sushell makes much less sense than sulogin. If distros want to stick to sushell
they should patch this downstream.
2013-01-04 23:26:21 +01:00
Lennart Poettering 83514a2fa0 units: drop distro specific stuff from units
Since rc-local is now enabled via the SysV compatibility we should only refer
to it based on that too.
2013-01-04 23:26:21 +01:00
Lennart Poettering 77e68fa2f0 systemctl: enable chkconfig compat only if chkconfig is found rather than based on distro 2013-01-04 23:26:21 +01:00
Lennart Poettering 32f992a514 fsck: remove distro specific hacks from fsck/quotacheck
Move forcefsck file checks under a HAVE_SYSV_COMPAT #ifdef, and warn if this is used.
2013-01-04 23:26:20 +01:00
Lennart Poettering 660ddc72f6 Make gcc a bit quieter 2013-01-04 23:26:20 +01:00
Lennart Poettering b1c4ca25bf build-sys: make rc-local support part of SYSV compat
This also drops automatic selection of the rc local scripts
based on the local distro. Distributions now should specify the paths
of the rc-local and halt-local scripts on the configure command line.
2013-01-04 23:26:20 +01:00
Lennart Poettering 46a2911bf2 core: drop support for old per-distro configuration files for console, hostname, locale, timezone
This simplifies the upstream system code quite a bit. If downstream distributions want to maintain compatibility with their old configuration files, they are welcome to do so, but need to maintain this as patches downstream. The burden needs to be on the distributions to maintain differences here. Our suggestion however is to just convert the old configuration files on upgrade, as multiple distributions already do.
2013-01-04 23:26:20 +01:00
Kay Sievers 1328f66ad1 udev: net_id - append "dev_id" value if needed 2013-01-04 19:08:08 +01:00
Kay Sievers 48a849ee17 udev: set device node permissions only at "add" events 2013-01-04 16:15:46 +01:00
Pekka Lundstrom 2bef10ab36 Added globbing support to EnvironmentFile
This patch allows globbing to be used with EnvironmentFile option.
Example:
EnvironmentFile=/etc/foo.d/*.conf

t. Pekka
2013-01-04 01:11:50 +01:00
Thomas Hindoe Paaboel Andersen 1a0fce458d systemctl: add is-failed
Adds is-failed to join is-active and is-enabled.

I grabbed this one from the todo list. Most of the functionality was
already there for is-active. I just needed to make check_one_unit take
the states to check for as an argument instead of the hardcoded
"active" and "reloading".

is-failed will return 1 if none of the units given are failed. This is
different from is-active which will return 3 if none of the units
given are active. It returns 3 with this comment:
/* According to LSB: "program is not running" */
As that does not make sense when looking for failed units I simply
chose 1 instead.
2013-01-04 00:33:25 +01:00
Michał Bartoszkiewicz c8be47e815 man: fix parameter in systemd-fstab-generator(8)
There is no parameter named luks.fstab.
2013-01-04 00:30:28 +01:00
Michał Bartoszkiewicz 9a9bb3ca1e localed: create /etc/X11/xorg.conf.d if needed
Use mkdir_p_label instead of mkdir_parents_label, so that the final
directory component is created too.
2013-01-04 00:26:27 +01:00
Adam Williamson 768aa35871 correct Macedonian keyboard mapping (X layout is 'mk', not 'mkd') 2013-01-03 23:10:07 +01:00
Adam Williamson 12939e7217 add Lithuanian keyboard mapping (lt/lt) 2013-01-03 23:09:59 +01:00
Adam Williamson 177c11eddf add Kazakh keyboard mapping (kazakh/kz) 2013-01-03 23:09:51 +01:00
Adam Williamson 2eaaf10fe0 add Hebrew (Israel) - simple, il/il 2013-01-03 23:09:37 +01:00
Adam Williamson fa593cfd87 French Canadian xlayout is just "ca", not "ca(fr)" any more 2013-01-03 23:09:27 +01:00
Adam Williamson 40b5bbb91e add Belarussian mapping: simple, 'by' and 'by' 2013-01-03 23:09:09 +01:00
Thomas Jarosch 3785ba6966 tmpfiles: Fix file descriptor leak on error
Detected by cppcheck
2013-01-03 22:42:55 +01:00
Lennart Poettering 1c981ff22e readahead: don't complain that we cannot precache symlinks
http://lists.freedesktop.org/archives/systemd-devel/2012-December/007847.html
2013-01-03 22:37:38 +01:00
Lennart Poettering 22f38abe9a man: clarify that specifiers cannot be used in ExecStart='s first argument 2013-01-03 22:37:31 +01:00
Lennart Poettering 9b41366bae TODO 2012-12-31 21:24:26 +01:00
Lennart Poettering 240dbaa44f unit: add ConditionACPower= 2012-12-31 21:24:26 +01:00