1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-13 23:21:08 +03:00
Commit Graph

158 Commits

Author SHA1 Message Date
Lennart Poettering
8d0e38a2b9 dbus: introduce UnsetAndSetEnvironment() 2011-06-21 19:29:45 +02:00
Lennart Poettering
48f82119ce util: return errno in close_nointr() 2011-06-21 19:29:44 +02:00
Lennart Poettering
5a3ab509b5 util: add fopen_temporary() 2011-06-21 19:29:44 +02:00
Lennart Poettering
f41607a6e1 util: move string enum mapping to the end 2011-06-21 19:29:44 +02:00
Lennart Poettering
1325aa4202 util: add pipe_eof() 2011-06-21 19:29:44 +02:00
Lennart Poettering
fb19a739d5 util: introduce dirent_is_file() 2011-06-21 19:29:43 +02:00
Kay Sievers
7948c4dfbe rtc in localtime: use settimeofday(NULL, tz) instead of hwclock(8)
We check for LOCAL in /etc/adjtime and if needed, ask the kernel to
apply the timezone delta to the system clock.

The very first call of settimeofday() without a time, but a timezone
warps the system clock, so that it properly runs in UTC.
2011-05-24 20:23:07 +02:00
Lennart Poettering
b83bc4e9cc util: use new VT ESC sequence to clear scrollback buffer 2011-05-20 14:37:48 +02:00
Lennart Poettering
74bc3bdc20 util: use open_terminal() in chvt() too 2011-05-19 18:10:34 +02:00
Lennart Poettering
6ea832a207 exec: hangup/reset/deallocate VTs in gettys
Explicitly disconnect all clients from a VT when a getty starts/finishes
(requires TIOCVHANGUP, available in 2.6.29).

Explicitly deallocate getty VTs in order to flush scrollback buffer.

Explicitly reset terminals to a defined state before spawning getty.
2011-05-18 01:07:36 +02:00
Kay Sievers
223a355816 binfmt, modules-load, sysctl, tmpfiles: read /usr/local/lib and where appropriate /lib directories 2011-04-30 20:31:33 +02:00
Lennart Poettering
ec195f55fb util: don't AND cx with cx 2011-04-30 04:07:28 +02:00
Kay Sievers
44143309dd util: conf_files_list() return list as parameter 2011-04-28 23:51:24 +02:00
Lennart Poettering
a9dd208208 lookup: drop empty directories from search paths 2011-04-28 04:55:05 +02:00
Kay Sievers
db1413d738 sysctl.d, binfmt.d, modules-load.d: switch to stacked config dirs in /lib, /etc, /run 2011-04-25 20:41:47 +02:00
Chris E Ferron
54e4fdef80 MeeGo support
This commit consists of the initial work to include MeeGo as a ported
distribution for systemd.

The majority of the changes are small configuration additions to auto
tools, so that MeeGo is identified as a valid distribution option.

Some small deviations will be noticed between the configuration of MeeGo
and other distributions. As MeeGo is a distribution striving for
compliancy to support its near embedded attributes and target users,
there is less user configuration options available by default. Most
services will be enabled by systemd as part of the distribution
requirements, and as such most links and service files will be pre-setup
for the MeeGo distribution. As much of this is going to be done within
the MeeGo distribution packaging this is still noteworthy to mention, as
it explains why in systemd you will observe configuration differences
where the MeeGo distribution removes all links in the pkgsysconfdir for
instance.  MeeGo will be user configurable if there is desire, but most
services will be enabled by the distribution as designated by the MeeGo
compliancy standards.

Other changes are in source to add such areas as meego-release defined
in utils, and hostname in hostname-setup, defining vconsole-setup,
localizations and rescue additions as needed.

As this is all ground work, MeeGo will continue to strive for complete
compatibility.
2011-04-20 01:05:30 +02:00
Lennart Poettering
7640a5de1b hostnamed: introduce systemd-hostnamed
http://www.freedesktop.org/wiki/Software/systemd/hostnamed
2011-04-16 02:03:35 +02:00
Lennart Poettering
9beb3f4d5c hostname: split out hostname validation into util.c 2011-04-16 02:03:35 +02:00
Lennart Poettering
6f9a471aa6 util: truncate newline inside of read_one_line_file() already 2011-04-16 02:03:34 +02:00
Lennart Poettering
8480e784f1 util: modernize get_parent_of_pid() a bit 2011-04-16 02:03:34 +02:00
Lennart Poettering
ac12344590 pam: use /proc/self/loginuid only if we have CAP_AUDIT_CONTROL 2011-04-12 21:08:44 +02:00
Lennart Poettering
20c03b7be2 don't make up buffer sizes, use standard LINE_MAX instead 2011-04-07 18:48:50 +02:00
Lennart Poettering
151b190e79 binfmt: add binfmt tool to set up binfmt_misc at boot 2011-04-04 03:36:42 +02:00
Lennart Poettering
7c3b203c5c kmsg-syslogd: pass facility value into kmsg 2011-04-03 22:15:14 +02:00
Lennart Poettering
7d76f31288 log: fix shifting of facilities 2011-03-31 21:22:44 +02:00
Lennart Poettering
da19d5c19f src: our lord is coverity 2011-03-31 15:35:40 +02:00
Lennart Poettering
9408a2d295 plymouth: use PID file to detect whether ply is running 2011-03-31 04:26:40 +02:00
Lennart Poettering
6faa11140b status: show status messages unconditionally if plymouth is around 2011-03-30 02:21:48 +02:00
cee1
37f85e66e8 util: detect page size runtime.
Some architectures support multiple machine types with diffenent
page sizes, and some machine types even support multiple
page sizes themselves.
2011-03-28 21:42:31 +02:00
Lennart Poettering
28cf382a0a man: document pidns containers 2011-03-18 04:53:31 +01:00
Lennart Poettering
14f3c8252b util: make touched files non-writable by default 2011-03-16 02:58:05 +01:00
Lennart Poettering
ef2df9f415 util: add detect_container() 2011-03-14 04:07:52 +01:00
Lennart Poettering
f9b9232be9 util: detect CLONE_NEWPID namespaces, and cache results 2011-03-14 03:12:25 +01:00
Lennart Poettering
0a27cf3f32 util: return exit status in wait_for_terminate_and_warn() 2011-03-14 03:12:25 +01:00
Lennart Poettering
46824d0e6b util: properly identify pty devices by their major 2011-03-14 03:12:25 +01:00
Lennart Poettering
720ce21d44 util: close all fds before freezing execution 2011-03-11 00:52:31 +01:00
Lennart Poettering
05feefe0fb dbus: properly generate UnknownInterface, UnknownProperty and PropertyReadOnly errors 2011-03-09 20:01:53 +01:00
Lennart Poettering
34df5a34e1 drop unnecessary suffix NULs as gcc adds them anyway 2011-03-09 19:48:02 +01:00
Andrey Borzenkov
1de4d79bf5 build-sys: add Mandriva distribution support
This merges several separate patches that I carry as part of
Mandriva systemd RPM. They touch those parts that are very
unlikely to be changed in near future and do not impose any
functionality change for systemd core. I also think it is
useful for troubleshooting to have real distribution name in
system logs, espicially when someone reports problem upstream.

The patch looks bigger than sum of replaced patches because

- previous patches were applied on top of distro=fedora, now
I need to add all those bits for distro=mandriva as well

- part of patch was done as spec file magic, but it seems more
logical to ship all these bits together
2011-03-08 19:47:36 +01:00
Lennart Poettering
8c7be95e5a execute: load environment files at time of execution, not when we load the service configuration
https://bugzilla.redhat.com/show_bug.cgi?id=661282
2011-03-04 03:44:43 +01:00
Lennart Poettering
430c18ed7f kill: always send SIGCONT after SIGTERM
When we kill a process to terminate it make sure to send SIGCONT to
ensure it is unpaused and processes the signal.
2011-03-03 23:55:30 +01:00
Lennart Poettering
721bca5763 virtualization: check cpuid first, since it is cheaper than DMI 2011-02-22 01:39:19 +01:00
Lennart Poettering
4e08da90d4 util: make string static 2011-02-22 00:19:03 +01:00
Lennart Poettering
07faed4f99 virtualization: beef virtualization code 2011-02-21 21:48:59 +01:00
Lennart Poettering
f73f76acff util: retry opening a TTY on EIO
https://bugs.freedesktop.org/show_bug.cgi?id=33996
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/554172/comments/245
2011-02-17 16:29:49 +01:00
Lennart Poettering
fc116c6a19 util: beef up logic to find ctty name 2011-02-17 16:29:04 +01:00
Lennart Poettering
da71f23cda util: seperate welcome line from other output by empty lines 2011-02-16 19:34:38 +01:00
Lennart Poettering
83cc030fad shutdown: execute all binaries in /lib/systemd/system-shutdown as last step before invoking reboot() 2011-02-15 00:30:11 +01:00
Lennart Poettering
079a09fbf7 util: properly resolve /dev/console if more than once console= argument was passed on the kernel command line 2011-02-14 19:54:15 +01:00
Lennart Poettering
f212ac125f getty: do not auto-spawn getty's on VC ttys if console=ttyN is used
https://bugzilla.redhat.com/show_bug.cgi?id=676885
2011-02-14 18:56:55 +01:00