1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-14 15:21:37 +03:00
Commit Graph

97 Commits

Author SHA1 Message Date
Lennart Poettering
9a0e689634 util: try harder to rename the process 2011-06-30 04:16:10 +02:00
Lennart Poettering
4d6d6518c3 logind: automatically deduce seat from display 2011-06-27 22:44:12 +02:00
Lennart Poettering
98a28fef26 logind: hook up PAM module with logind 2011-06-24 18:50:50 +02:00
Lennart Poettering
a185c5aa2d logind: implement idle hint logic 2011-06-21 19:29:45 +02:00
Lennart Poettering
2076cf8831 timedated: sync clock down to RTC where necessary 2011-06-21 19:29:45 +02:00
Lennart Poettering
34ca941cec util: make a couple of files we write atomic 2011-06-21 19:29:45 +02:00
Lennart Poettering
5a3ab509b5 util: add fopen_temporary() 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
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
Paul Menzel
ec2002f849 util: include stdarg.h
Otherwise using uClibc compilation (OpenEmbedded [1] with `minimal-uclibc` for `MACHINE = "beagleboard"`) fails with the following error message.

| make[1]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/systemd-v26-r0/git'
|   CC     src/libsystemd_basic_la-util.lo
| src/util.c: In function 'acquire_terminal':
| src/util.c:2484:29: warning: cast increases required alignment of target type [-Wcast-align]
| src/util.c:2497:37: warning: cast increases required alignment of target type [-Wcast-align]
| src/util.c: In function 'rename_process':
| src/util.c:2905:17: warning: passing argument 1 of 'strncpy' discards qualifiers from pointer target type
| /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/string.h:87:14: note: expected 'char * restrict' but argument is of type 'const char *'
| src/util.c: In function 'cpu_set_malloc':
| src/util.c:3229:17: warning: implicit declaration of function 'CPU_ALLOC' [-Wimplicit-function-declaration]
| src/util.c:3229:25: warning: assignment makes pointer from integer without a cast
| src/util.c:3232:17: warning: implicit declaration of function 'CPU_ALLOC_SIZE' [-Wimplicit-function-declaration]
| src/util.c:3233:25: warning: implicit declaration of function 'CPU_ZERO_S' [-Wimplicit-function-declaration]
| src/util.c:3241:17: warning: implicit declaration of function 'CPU_FREE' [-Wimplicit-function-declaration]
|   CC     src/libsystemd_basic_la-label.lo
| In file included from src/label.c:27:0:
| src/util.h:358:41: error: expected declaration specifiers or '...' before 'va_list'
| make[1]: *** [src/libsystemd_basic_la-label.lo] Error 1
| make[1]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/systemd-v26-r0/git'
| make: *** [all] Error 2
| + die 'oe_runmake failed'
| + oefatal 'oe_runmake failed'
| + echo FATAL: 'oe_runmake failed'
| FATAL: oe_runmake failed
| + exit 1
NOTE: package systemd-v26-r0: task do_compile: Failed
ERROR: Function 'do_compile' failed (see /oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/systemd-v26-r0/temp/log.do_compile.4020 for further information)
ERROR: Task 13 (/oe/openembedded/recipes/systemd/systemd_git.bb, do_compile) failed with exit code '1'
ERROR: '/oe/openembedded/recipes/systemd/systemd_git.bb' failed

[1] http://www.openembedded.org/
2011-05-10 01:45:05 +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
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
ac12344590 pam: use /proc/self/loginuid only if we have CAP_AUDIT_CONTROL 2011-04-12 21:08:44 +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
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
ef2df9f415 util: add detect_container() 2011-03-14 04:07:52 +01:00
Lennart Poettering
46824d0e6b util: properly identify pty devices by their major 2011-03-14 03:12:25 +01:00
Lennart Poettering
05feefe0fb dbus: properly generate UnknownInterface, UnknownProperty and PropertyReadOnly errors 2011-03-09 20:01:53 +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
07faed4f99 virtualization: beef virtualization code 2011-02-21 21:48:59 +01:00
Lennart Poettering
fc116c6a19 util: beef up logic to find ctty name 2011-02-17 16:29:04 +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
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
Lennart Poettering
46a08e3815 readahead: disable readahead in virtual machines 2011-02-13 15:46:05 +01:00
Lennart Poettering
9a57c62944 systemctl: highlight failed processes in systemctl status 2011-01-20 18:22:03 +01:00
Lennart Poettering
5f7c426e2a fragment: properly handle quotes in assignments in EnvironmentFile= files 2011-01-05 16:06:35 +01:00
Lennart Poettering
a247755d52 tmpfiles: ensure we do no follow symlinks when cleaning up dirs
Patch suggested by Miloslav Trmac.
2010-12-28 14:21:28 +01:00
Lennart Poettering
e3aa71c38c exec: automatically determine right TERM= setting based on tty name 2010-11-15 23:49:02 +01:00
Lennart Poettering
7f4e08056d cryptsetup: hook up tool with ask-password 2010-11-12 00:40:27 +01:00
Lennart Poettering
e9ddabc246 manager: parse RD_TIMESTAMP passed from initrd 2010-11-10 22:38:44 +01:00
Lennart Poettering
e23a0ce8ba cryptsetup: minimal cryptsetup unit generator 2010-11-10 22:38:43 +01:00
Lennart Poettering
799fd0fd23 service: unify tstamp serialization code 2010-10-28 03:16:03 +02:00
Lennart Poettering
5c0532d1cc mounts: automatically create /dev/stderr and friends early on boot so that they are around when we run shell scripts before udevd 2010-10-27 05:47:48 +02:00
Lennart Poettering
ade509ce73 main: move make_null_stdio() to util.c 2010-10-27 05:45:57 +02:00
Lennart Poettering
10717a1a8d unit: serialize active timestamps 2010-10-27 00:01:12 +02:00
Lennart Poettering
ec863ba65a ask-password: add basic tty agent 2010-10-25 20:36:01 +02:00
Lennart Poettering
8a0867d6c5 systemctl: introduce systemctl kill 2010-10-22 16:11:50 +02:00
Lennart Poettering
3b63d2d31d tmpfiles: integrate kay's directory cleanup code and otherwise beef up tmpfiles quite a bit 2010-10-18 22:38:41 +02:00
Lennart Poettering
00dc5d769a unit: introduce 'banned' load state for units symlinked to /dev/null 2010-10-08 02:31:36 +02:00
Lennart Poettering
3c14d26c47 util: unify implementations of freeze() 2010-10-07 19:34:56 +02:00
Fabiano Fidencio
3846aeeba2 util: Adding a strneq, to represent (!strncmp(a, b, n))
As we have streq to repesent (strcmp(a, b) == 0),I'm adding
strneq to represent (strncmp(a, b, n) == 0), that will be used
in umount.c (at least).
2010-10-07 19:22:11 +02:00
Dave Reisner
c899f8c61a fix typo: s/seperat/separat/g 2010-10-05 21:50:56 +02:00