Commit graph

174 commits

Author SHA1 Message Date
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
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