Commit Graph

539 Commits

Author SHA1 Message Date
Kay Sievers 2d13da8821 udev: remove RUN+="socket:.." and udev_monitor_new_from_netlink() 2012-04-09 21:18:30 +02:00
Kay Sievers 1c0f62e37b udev: fix test-udev binary 2012-04-08 17:03:17 +02:00
Kay Sievers 07cd4fc168 udev: remove support for /lib/udev/devices/; tmpfiles should be used 2012-04-08 16:50:16 +02:00
Kay Sievers baa30fbc2c udev: switch to systemd logging functions 2012-04-08 16:06:20 +02:00
Lennart Poettering e96d6be763 systemd: add hardware watchdog support
This adds minimal hardware watchdog support to PID 1. The idea is that
PID 1 supervises and watchdogs system services, while the hardware
watchdog is used to supervise PID 1.

This adds two hardware watchdog configuration options, for the runtime
watchdog and for a shutdown watchdog. The former is active during normal
operation, the latter only at reboots to ensure that if a clean reboot
times out we reboot nonetheless.

If the runtime watchdog is enabled PID 1 will automatically wake up at
half the configured interval and write to the watchdog daemon.

By default we enable the shutdown watchdog, but leave the runtime
watchdog disabled in order not to break independent hardware watchdog
daemons people might be using.

This is only the most basic hookup. If necessary we can later on hook
up the watchdog ping more closely with services deemed crucial.
2012-04-05 22:15:29 +02:00
Kay Sievers b8217b7bd5 update TODO 2012-04-04 14:57:36 +02:00
Kay Sievers 3e2147858f move imported udev into place 2012-04-04 05:05:07 +02:00
Lennart Poettering 3eff4208ff logind: log with AUTH facility 2012-04-03 19:26:02 +02:00
Lennart Poettering 568b679f2a systemctl: make -f short for both --follow and --force 2012-04-03 14:43:48 +02:00
Lennart Poettering 08f23fd29c update TODO 2012-04-03 14:27:13 +02:00
Lennart Poettering 3cc588803d update TODO 2012-04-02 20:54:15 +02:00
Lennart Poettering b070e7f3c9 journal: implicitly add code location to all messages logged with the native interface
This logic can be turned off by defining SD_JOURNAL_SUPPRESS_LOCATION
before including sd-journal.h.

This also saves/restores errno in all logging functions, in order to be
useful as logging calls without side-effects.

This also adds a couple of __unlikely__ around the early checks in the
logging calls, in order to minimize the runtime impact.
2012-04-02 19:29:48 +02:00
Lennart Poettering 1fa80181ae journal: decrease default mmap window size to allow a bigger number of journals to be traversed in parallel 2012-04-02 19:29:47 +02:00
Kay Sievers 18b754d345 rename /etc/systemd/systemd-{login,journal}d.conf to {login,journal}d.conf 2012-03-30 23:36:44 +02:00
Lennart Poettering 231931ffba units: don't mount tmpfs on /media anymore
udisks2 doesn't use /media anymore, instead mounts removable media in a
user-private directory beneath /run. /media is hence mostly obsolete and
hence it makes little sense to continue to mount a tmpfs to it.

Distributions should consider dropping the mount point entirely since
nothing uses it anymore.
2012-03-27 17:04:22 +02:00
Lennart Poettering 2bd3c38a44 journalctl: add --local switch 2012-03-27 00:14:29 +02:00
Lennart Poettering 169c4f6513 journalctl,loginctl: drop systemd- prefix in binary names
Let's make things a bit easier to type, drop the systemd- prefix for
journalctl and loginctl, but provide the old names for compat.

All systemd binaries are hence now prefixed with "systemd-" with the
exception of the three primary user interface binaries:

systemctl
loginctl
journalctl

For those three we do provide systemd-xyz names as well, via symlinks:

systemd-systemctl → systemctl
systemd-loginctl → loginctl
systemd-journalctl → journalctl

We do this only for the *primary* user tools, in order to avoid
unnecessary namespace problems. That means tools like systemd-notify
stay the way they are.
2012-03-26 20:58:47 +02:00
Lennart Poettering 6ba383fa49 update TODO 2012-03-22 01:42:34 +01:00
Lennart Poettering bd08f24224 man: fix parameter name for sd_uid_xxx() 2012-03-20 15:28:35 +01:00
Lennart Poettering 38cacf5acd man: make sure we ship HTML versions of the man pages in the tarball 2012-03-16 01:25:32 +01:00
Lennart Poettering 5c3246b1a6 man: document journal features of systemctl(1) 2012-03-16 01:00:23 +01:00
Kay Sievers d3c7d7dd77 update TODO 2012-03-15 12:43:53 +01:00
Lennart Poettering 71100051c5 journald: increase max file size to 128MB 2012-03-15 02:57:39 +01:00
Lennart Poettering fb0864e7b9 virt: the pidns controller does not exist anymore 2012-03-15 00:43:47 +01:00
Lennart Poettering 18da49531e update TODO 2012-03-14 19:10:29 +01:00
Lennart Poettering 8af0fcdb90 update TODO 2012-03-14 17:23:43 +01:00
Lennart Poettering 0d1575814b update TODO 2012-03-14 14:37:49 +01:00
Lennart Poettering 9586cdfab6 socket: if we fail to create an instantiated service for a socket, don't put the socket in failure mode
An incoming connection that is immediately terminated might result in
getpeername() or a similar call failing. Hence it is quite possible that
while we are setting up an instantiated service for a socket we might
get an error and we shouldn't take this as hint to take the listening
socket down.

https://bugs.freedesktop.org/show_bug.cgi?id=45297
https://bugzilla.novell.com/show_bug.cgi?id=741590
2012-03-14 03:01:27 +01:00
Lennart Poettering 6b80b9b8ee update TODO 2012-03-13 13:44:47 +01:00
Lennart Poettering 54ecda32c6 socket: add option for SO_PASSEC
https://bugzilla.redhat.com/show_bug.cgi?id=798760

(Note that this work is not complete yet, as the kernel seems to send us
useless data with SCM_SECURITY enabled)
2012-03-13 00:00:27 +01:00
Lennart Poettering 7f110ff9b8 conf: enforce UTF8 validty everywhere
we need to make sure that configuration data we expose via the bus ends
up in using getting an assert(). Even though configuration data is only
parsed from trusted sources we should be more careful with what we read.
2012-03-12 22:22:21 +01:00
Lennart Poettering 8d2831af71 update TODO 2012-03-12 14:01:27 +01:00
Lennart Poettering 93e487fc8f update TODO 2012-03-06 12:55:57 +01:00
Lennart Poettering 0716c60e37 update TODO 2012-03-06 01:36:58 +01:00
Lennart Poettering 4007e72e05 update TODO 2012-03-06 01:30:00 +01:00
Lennart Poettering 9cacf56451 umount: don't try to umount /usr, if we are running from it 2012-03-06 01:28:32 +01:00
Lennart Poettering 7d900eb6f5 update TODO 2012-03-05 22:55:49 +01:00
Lennart Poettering 101f077676 update TODO 2012-03-05 14:09:27 +01:00
Lennart Poettering d0e5a33374 update TODO 2012-02-20 19:56:14 +01:00
Lennart Poettering f7f964eb36 update TODO 2012-02-20 15:54:28 +01:00
Lennart Poettering e606bb61d0 systemctl: introduce systemctl reboot -ff 2012-02-15 20:05:49 +01:00
Lennart Poettering 068665b6fd update TODO 2012-02-15 02:39:52 +01:00
Lennart Poettering 51f58f083a login: add new sd_session_get_type() and sd_session_get_class API calls 2012-02-14 21:54:00 +01:00
Kay Sievers 6edd7ca162 update TODO 2012-02-14 19:24:39 +01:00
Lennart Poettering 15e9fbd851 TODO 2012-02-13 17:01:08 +01:00
Lennart Poettering 53ed2eeb2e TODO 2012-02-11 01:18:03 +01:00
Lennart Poettering 05d02d8db0 main: fix reexecution of systemd, use right path to binary 2012-02-09 23:25:57 +01:00
Lennart Poettering 353e12c2f4 service: ignore SIGPIPE by default 2012-02-09 03:18:04 +01:00
Lennart Poettering 12ac304714 update TODO 2012-02-09 02:13:36 +01:00
Tom Gundersen 83684a3553 modules-load: use libkmod rather than modprobe 2012-02-09 00:47:09 +01:00
Tom Gundersen 728beb28a7 kmod-setup: use libkmod rather than modprobe 2012-02-09 00:43:05 +01:00
Lennart Poettering 2496985585 update TODO 2012-02-08 21:59:28 +01:00
Lennart Poettering 20908246d6 update TODO 2012-02-07 14:39:26 +01:00
Lennart Poettering acb14d318b cgroup: when getting cgroup empty notifications, always search up the tree 2012-02-03 05:25:31 +01:00
Lennart Poettering 680a1dbc35 update TODO 2012-02-03 05:06:03 +01:00
Lennart Poettering 803a3464ce coredump: avoid coredump loops, divert coredump if journald itself is crashing 2012-02-02 01:22:49 +01:00
Lennart Poettering c4aa65e714 logind: add GetSessionByPID() bus call 2012-02-01 19:04:54 +01:00
Lennart Poettering 7e64c73a93 update TODO 2012-01-31 23:13:25 +01:00
Lennart Poettering b3e0604274 update TODO 2012-01-31 18:23:52 +01:00
Lennart Poettering 36e43bddd0 update TODO 2012-01-23 22:03:32 +01:00
Lennart Poettering b61c90514e update TODO 2012-01-23 22:02:43 +01:00
Lennart Poettering a558d00381 journal: move journal TODO into main TODO 2012-01-23 22:01:29 +01:00
Lennart Poettering 7c69716810 util: use /dev/rtc symlink if possible before we go searching for a suitable device 2012-01-23 21:56:55 +01:00
Lennart Poettering 51122dc9e3 util: open the first RTC that has hctosys=1 set 2012-01-21 03:15:54 +01:00
Lennart Poettering 05aa9edde0 readahead: don't monopolize IO when replaying 2012-01-21 02:51:13 +01:00
Kay Sievers c7eb4b85c3 update TODO 2012-01-21 01:19:57 +01:00
Lennart Poettering 31ed59c511 tmpfiles: support writing short strings to files, in order to support /sys manipulations at boot time, a la sysctl 2012-01-18 16:39:04 +01:00
Lennart Poettering 8d53b4534a exec: introduce ControlGroupPersistant= to make cgroups persistant 2012-01-18 15:40:21 +01:00
Lennart Poettering 62f21ec91a journalctl: properly honour -n when -f is passed, too 2012-01-18 13:56:02 +01:00
Lennart Poettering 87a8baa35d update TODO 2012-01-18 13:56:02 +01:00
Lennart Poettering 5ba081b0fb log: make internal log api log directly to the journal 2012-01-12 04:34:31 +01:00
Lennart Poettering dddd8168d2 Update TODO 2012-01-11 02:58:14 +01:00
Lennart Poettering b3fa47e081 update TODO 2012-01-11 02:52:01 +01:00
Lennart Poettering aaf53376aa journald: remove inner loop debug message 2012-01-07 04:10:21 +01:00
Lennart Poettering bda061759c logind: send out Lock signal when locking 2012-01-03 23:08:15 +01:00
Kay Sievers bb765041af gnome-ask-password-agent: require libnotify >= 0.7.0 2011-12-31 18:15:27 +01:00
Lennart Poettering dc1ecd78e9 Merge branch 'journal' 2011-12-31 00:59:37 +01:00
Kay Sievers 69b1c67463 update TODO 2011-12-29 14:09:04 +01:00
Lennart Poettering 6e409ce10d journald: implement sophisticated rate limiting 2011-12-27 22:51:46 +01:00
Lennart Poettering 807e17f05e journal: add inline compression support with XZ 2011-12-21 02:40:59 +01:00
Lennart Poettering 7f3e62571a journal: add native protocol to journald, and client side API to send journal messages 2011-12-17 00:56:34 +01:00
Lennart Poettering c77b7f7f82 update TODO 2011-12-14 17:12:26 +01:00
Lennart Poettering 1e2579fdeb Merge branch 'master' into journal 2011-11-08 19:44:16 +01:00
Lennart Poettering a40593a0d0 TODO 2011-11-08 19:12:29 +01:00
Lennart Poettering 4cbd9ecf45 update TODO 2011-11-03 19:55:36 +01:00
Lennart Poettering 25d6283acf update TODO 2011-11-01 23:53:15 +01:00
Lennart Poettering a6eb9147a8 update TODO 2011-11-01 13:52:43 +01:00
Lennart Poettering 62590f23c1 unit: introduce ConditionCapability 2011-10-11 15:16:52 +02:00
Lennart Poettering f84aea434f units: increase LimitNOFILE a bit
since we need one fd per session (for logind) and one fd per service
(for stdout-syslog-bridge) increase the default rlimit a bit.
2011-10-11 04:43:29 +02:00
Lennart Poettering 688c56ff7d logind: fail gracefully if too many sessions are created
https://bugzilla.redhat.com/show_bug.cgi?id=744726
2011-10-11 04:43:01 +02:00
Lennart Poettering a724d2ed79 timedate: fall back to /etc/sysconfig/clock on Fedora, for compatibility with legacy 2011-10-11 04:23:35 +02:00
Lennart Poettering effe639c6a update TODO 2011-10-11 01:00:08 +02:00
Lennart Poettering 65c0cf7108 update TODO 2011-10-10 22:25:34 +02:00
Kay Sievers b011116d18 update TODO 2011-10-09 15:54:20 +02:00
Lennart Poettering 9a36607584 update TODO 2011-10-07 22:00:23 +02:00
Lennart Poettering 340047e95d update TODO 2011-10-07 20:50:59 +02:00
Lennart Poettering 0cdad5c052 update TODO 2011-09-22 04:18:18 +02:00
Lennart Poettering 4dfc092a71 service: if StandardInput=socket and StandardOutput=inherit imply socket for output, don't imply default output
This is useful for inetd-style per-connection services, so that they
again can simply specify StandardOutput=socket to connect all three fds
to the socket.
2011-09-22 03:29:51 +02:00
Lennart Poettering 7ef5875d14 units: introduce unit file for FUSE fs
FUSE and configfs is very very similar, so handle both the same way.
2011-09-22 03:00:04 +02:00
Lennart Poettering d3354f66c2 mount: pull in quota tools from fstab lines with 'quota' option, too
https://bugzilla.redhat.com/show_bug.cgi?id=736360
2011-09-21 20:19:43 +02:00
Kay Sievers f957632b96 update TODO 2011-09-21 19:33:52 +02:00
Lennart Poettering a2f5666d06 update TODO 2011-09-21 03:56:56 +02:00
Lennart Poettering ac0a983ac6 units: drop automount unit for /dev/hugepages
Since hugetlbfs cannot be compiled as kernel module there's little point
in doing on-demand mounting via autofs for it.
2011-09-21 03:56:56 +02:00
Lennart Poettering 1f2c94a487 units: drop automount unit for /dev/mqueue
Since the mqueue support cannot be built as a module there's little
benefit in having an autofs mount point set up for this.
2011-09-21 03:56:56 +02:00
Lennart Poettering e124e7a4a1 units: drop automount unit for /sys/kernel/debug
Since debugfs cannot be compiled as module there's little benefit in
having it as autofs mount point.
2011-09-21 03:56:55 +02:00
Lennart Poettering 0286cc1551 units: drop /sys/kernel/config automount unit
The mount point directory /sys/kernel/config is only created after the
module is loaded, hence there's little value in having this an automount
unit: the runtime penalty for mounting an autofs here should be the same
as for a real mount.
2011-09-21 03:56:55 +02:00
Lennart Poettering ab7f148f81 unit: introduce ConditionPathIsMountPoint= 2011-09-21 00:50:40 +02:00
Lennart Poettering 67d36a7a20 update TODO 2011-09-20 03:33:49 +02:00
Lennart Poettering ad740100d1 dbus: terminate mechanism daemons after a while 2011-09-03 03:26:58 +02:00
Lennart Poettering de6c78f879 service: change default stdout/stderr to syslog 2011-08-30 22:57:58 +02:00
Lennart Poettering 346bce1f4c stdout-bridge: rename logger to stdout-syslog-bridge to make it more descriptive 2011-08-30 22:42:49 +02:00
Lennart Poettering 3377af3e22 man: fix securebits docs 2011-08-29 13:44:12 +02:00
Lennart Poettering c821bd28c2 update TODO 2011-08-24 21:22:26 +02:00
Lennart Poettering 7d441ddb5c update TODO 2011-08-24 21:14:28 +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 14e639ae7a update TODO 2011-08-21 19:07:43 +02:00
Kay Sievers b38bb49379 update TODO 2011-08-03 15:12:34 +02:00
Lennart Poettering ff01d048b4 exec: introduce PrivateNetwork= process option to turn off network access to specific services 2011-08-02 05:24:58 +02:00
Lennart Poettering 72b9ed828b update TODO 2011-08-02 01:41:36 +02:00
Lennart Poettering 8112e84f65 update TODO 2011-08-02 00:34:13 +02:00
Lennart Poettering cc9784c6d1 update TODO 2011-08-01 23:16:20 +02:00
Lennart Poettering 1d6702e8d3 umask: set umask of a number of sockets by default, even though we check creds on connections 2011-08-01 22:42:07 +02:00
Lennart Poettering 92f30b3f05 update TODO 2011-07-31 03:54:30 +02:00
Lennart Poettering 71092d70af update TODO 2011-07-29 05:01:47 +02:00
Kay Sievers aa95e21c2c update TODO 2011-07-29 02:17:51 +02:00
Lennart Poettering 35c5c7a01d update TODO 2011-07-27 20:50:30 +02:00
Lennart Poettering 5d0fcd7c8d update TODO 2011-07-27 20:47:50 +02:00
Lennart Poettering add30678a1 sd-login: add new call sd_seat_can_multi_session() 2011-07-26 23:09:09 +02:00
Lennart Poettering 41e4d6e9ac sysctl: apply network specific sysctls to each network card as they appear 2011-07-25 20:25:49 +02:00
Lennart Poettering 729e3769c3 systemctl: hook up new install logic
This adds a number of new options to systemctl, for presets, reenabling,
masking/unmask, and runtime operations.
2011-07-25 04:58:02 +02:00
Lennart Poettering 253ee27a0c manager: add log control via RT signals 2011-07-23 04:15:38 +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 d8eaa1144f update TODO 2011-07-22 04:31:20 +02:00
Lennart Poettering 55af389785 logind: enable PowerOff/Reboot calls 2011-07-15 01:53:11 +02:00
Lennart Poettering e5fcb85286 update TODO 2011-07-15 01:53:11 +02:00
Lennart Poettering 74b91131ed logind: introduce libsystemd-login.so as fast path to access logind data 2011-07-14 22:51:28 +02:00
Lennart Poettering 0a55b298d9 systemctl: don't try rebooting with /dev/initcl if Upstart worked 2011-07-14 18:05:33 +02:00
Lennart Poettering 576a01c873 nspawn: compress mount table a bit 2011-07-13 22:50:59 +02:00
Lennart Poettering 85f248b266 consolidate TODO 2011-07-13 22:05:35 +02:00
Lennart Poettering 82e487c56d unit: introduce ConditionFileIsExecutable= and use it where we check for a binary we'll spawn 2011-07-12 04:25:02 +02:00
Lennart Poettering ee17ee7c5c tmpfiles: allow creation of named pipes with tmpfiles 2011-07-12 03:56:56 +02:00
Lennart Poettering 97f73ffb04 update TODO 2011-07-12 03:42:44 +02:00
Lennart Poettering 7a2a0b907b sysctl: support application of sysctl subtrees 2011-07-12 03:36:17 +02:00
Lennart Poettering 7a41c61168 build-sys: add a number of missing header files to EXTRA_DIST 2011-07-12 01:11:40 +02:00
Lennart Poettering 1258097cd3 update TODO 2011-07-11 21:10:48 +02:00
Lennart Poettering 7b3afbac4d acl: two tag matching is not going to be available in libudev 2011-07-08 21:44:22 +02:00
Lennart Poettering a4c279f874 loginctl: add various introspection functions 2011-07-08 21:39:10 +02:00
Lennart Poettering 8092a428d4 path,unit: support globbing in conditions and path units 2011-07-07 02:07:39 +02:00
Lennart Poettering 31a5f880cf update TODO 2011-07-07 01:18:10 +02:00