Commit graph

200 commits

Author SHA1 Message Date
Lennart Poettering 689b9a22f7 Merge branch 'master' into journal 2011-10-12 04:29:11 +02:00
Lennart Poettering 64685e0cea util: properly detect what the last capability is 2011-10-11 22:30:31 +02:00
Thomas Jarosch 678abaf91e util: fix close() call on wrong variable
Detected by "cppcheck" (actually it detected a file descriptor leak)
2011-10-10 22:30:57 +02:00
Lennart Poettering f4b4781191 journal: split user logs into their own journal files 2011-10-07 23:03:07 +02:00
Lennart Poettering 87d2c1ff6a journal: add preliminary incomplete implementation 2011-10-07 22:02:05 +02:00
Lennart Poettering fb9de93dd3 localed: add SetX11Keyboard() and SetVConsoleKeyboard() bus calls 2011-09-28 04:34:17 +02:00
Lennart Poettering b52aae1d93 util: move virtualization detection into its own files, and extend return codes 2011-09-23 17:00:33 +02:00
Lennart Poettering 799f46d36f util: don't fail if no id was passed to detect_container() 2011-09-23 16:28:27 +02:00
Lennart Poettering 65bc2c2114 util: detect systemd-nspawn without relying on ns cgroup tree 2011-09-23 16:28:27 +02:00
Michal Schmidt 4e240ab0c9 util: improve signal_to_string, signal_from_string
signal_to_string:
 Produce names for SIGRTMIN+n.
 Never give an "n/a" result. In the worst case give the number itself as
 a string.

signal_from_string:
 Parse "RTMIN+n".
 Parse any valid signal number.
2011-09-23 10:30:19 +02:00
Lennart Poettering f8440af5fe coverity: change a few things so that coverity doesn't show so many false positives 2011-09-23 01:45:34 +02:00
Lennart Poettering 8ea913b2ea coverity: fix a couple of bugs found by coverity 2011-09-23 01:45:34 +02:00
Frederic Crozat 65457142f1 initctl: check for kexec_loaded when reboot is requested through initctl 2011-08-24 02:19:30 +02:00
Lennart Poettering 0c85a4f3ef cgroup: optionally mount a specific cgroup controllers together, and add cpu+cpuacct to the default 2011-08-23 00:37:35 +02:00
Lennart Poettering e27796a030 cgroup: when trimming cgroup trees, honour sticky bit of tasks file 2011-08-21 21:00:41 +02:00
Lennart Poettering ad293f5a94 cgroup: honour sticky bit when trimming cgroup trees 2011-08-21 20:07:46 +02:00
Lennart Poettering 94959f0fa0 exec: allow passing arbitrary path names to blkio cgroup attributes
If a device node is specified, then adjust the bandwidth/weight of it,
otherwise find the backing block device of the file system the path
refers to and adjust its bandwidth/weight.
2011-08-21 20:07:45 +02:00
Lennart Poettering ab1f063390 exec: optionally apply cgroup attributes to the cgroups we create 2011-08-20 00:22:02 +02:00
Lennart Poettering 3bfc71846c util: place a couple of _likely_ around cache TLS vars 2011-08-01 05:05:59 +02:00
Lennart Poettering b636465bc0 util: add is_main_thread() call 2011-08-01 05:05:12 +02:00
Lennart Poettering 44d9105692 util: use join() instead of asprintf() as an optimization 2011-08-01 02:39:22 +02:00
Lennart Poettering 911a4828e0 util: introduce join() to speed up simple string concatenations 2011-08-01 01:28:01 +02:00
Lennart Poettering 57a8eca84a util: optimize strstrip() a bit 2011-08-01 01:18:33 +02:00
Lennart Poettering d60ef52650 sd-login: return size of arrays as return value in functions that generate an array 2011-07-29 03:14:06 +02:00
Lennart Poettering 4b67834e9f util: make use of get_user_creds() and get_group_creds() wherever applicable 2011-07-23 01:17:59 +02:00
Lennart Poettering ddd8876392 util: user parse_uid() wherever applicable 2011-07-23 00:47:17 +02:00
Lennart Poettering 034a2a52ac sd-login: beef up login api, to add monitoring and enumerating 2011-07-22 21:01:15 +02:00
Lennart Poettering f782b8d031 util: use readdir_r() instead of readdir() 2011-07-22 04:31:21 +02:00
Lennart Poettering 830964834f install: add new installer implementation
This new installer will replace the current code of "systemctl enable"
but also be available via D-Bus. It adds a couple of new features:

- Mask/Unmask calls
- Reenable call
- Preset call
- Support for enabling units temporarily (i.e. in /run/systemd instead
  of /etc/systemd)
- Enumeration of installed units
- Support for out-of-search-path units

systemctl and D-Bus are not hooked up with this yet
2011-07-22 04:31:21 +02:00
Kay Sievers ff4daf5a34 fix hwclock_apply_localtime_delta() to properly handle negative TZ offset
Localtime may be a negative number, i.e. GMT-7. Fix based on a
patch from Kelly Anderson <kelly@silka.with-linux.com>.
2011-07-21 20:28:27 +02:00
Lennart Poettering 1968a36040 cgls: add pager support to systemd-cgls 2011-07-07 02:34:35 +02:00
Lennart Poettering 8092a428d4 path,unit: support globbing in conditions and path units 2011-07-07 02:07:39 +02:00
Lennart Poettering 7862f62de3 util: explicitly turn of O_CLOEXEC for stdin/stdout/stderr 2011-07-05 03:29:24 +02:00
Lennart Poettering ccaa61498c add a few O_CLOEXEC where missing 2011-07-05 03:29:24 +02:00
Michal Vyskocil 1cccf43569 nspawn: Move the get_user_creds from execute.c to utils.c for later usage in nspawn.c. 2011-07-01 23:49:56 +02:00
Lennart Poettering 9a0e689634 util: try harder to rename the process 2011-06-30 04:16:10 +02:00
Lennart Poettering 8585357a0e util: clear scrolling region when clearing screen 2011-06-29 21:17:31 +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 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