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

3221 Commits

Author SHA1 Message Date
Michal Schmidt
0fe9972f3c units: fix rescue.service race with plymouth
It was possible for the "ExecStartPre=-/bin/plymouth quit" to race
with plymouth-start.service which is pulled in indirectly by
basic.target -> sysinit.target.

The race left plymouth running on the terminal, making it unusable for
rescue purposes.

https://bugzilla.redhat.com/show_bug.cgi?id=710487
2011-09-22 23:59:50 +02:00
Lennart Poettering
1c744f2ba6 man: document that PathChanged= does not care for simple writes but only for close()-after-write() 2011-09-22 21:37:01 +02:00
Lennart Poettering
a82e5507a6 unit: don't recheck conditions when a unit is already starting but unit_start() is invoked 2011-09-22 21:32:18 +02:00
Lennart Poettering
7712ea6da6 man: document pkg-config line for sd-daemon 2011-09-22 21:16:52 +02:00
Lennart Poettering
71e6c1cf47 man: document that sd-daemon.[ch] is now available as shared library 2011-09-22 21:16:52 +02:00
Michal Schmidt
5375410bb2 service: warn if a service fails to write its PID file
Warn if a service promises to write a PID file (using 'PIDFile=' in the
unit file or '# pidfile:' in SysV header), but fails to keep the
promise.

This warning will likely trigger also for the forking services with a
racy daemonization, which exit the original process before the PID file
is written.
2011-09-22 13:18:52 +02:00
Lennart Poettering
0cdad5c052 update TODO 2011-09-22 04:18:18 +02:00
Lennart Poettering
878587bddd selinux: reopen log when loading the SELinux policy fails 2011-09-22 04:05:40 +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
a65f4aeb63 udev: asynchronously mount fuse/confifgs as soon as the kmods are loaded 2011-09-22 03:02:15 +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
Marko Saukko
d418f857f8 units: In MeeGo there was more than one ExecStart lines present that caused systemd to refuse the rescue.service 2011-09-21 21:38:46 +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
Lennart Poettering
57981b9812 job: after converting a job from restart to start readd it to run queue
When we converted a restart job it's time to look again whether any of
its dependencies are now runnable.

https://bugzilla.redhat.com/show_bug.cgi?id=735013
2011-09-21 19:57:27 +02:00
Kay Sievers
f957632b96 update TODO 2011-09-21 19:33:52 +02:00
Lennart Poettering
4f38cd85f6 units: we don't need to check whether /sys/kernel/security is already mounted since we'll enumerate that fact anyway 2011-09-21 18:06:24 +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
77f81d8b30 units: drop automount unit for /sys/kernel/security
Since securityfs cannot be build as module there's little value in
having an on-demand autofs mount point for it.
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
c72dcc5431 modules-load: filter out double modules 2011-09-21 03:56:55 +02:00
Michal Schmidt
13230d5d3c service: minor change in service_load_pid_file return value
Return 0 only if the PID was really loaded. If no PIDFile= is defined,
return -ENOENT.

Only one caller cares about the return value of this function and this
change makes the usage nicer.
2011-09-21 02:25:17 +02:00
Michal Schmidt
0d60602c3b condition: add ConditionPathIsSymbolicLink 2011-09-21 01:42:02 +02:00
Lennart Poettering
8571962ca3 condition: always follow symlinks for condition checks, to mimic test 2011-09-21 01:07:25 +02:00
Michal Schmidt
db01f8b3f8 service: handle forking services that move to a new PID
When some forking daemons receive a SIGHUP, they re-execute themselves
and consequently change to a new main PID. As long as they update the
PID file in the right order (before exiting the old PID), we can detect
that and avoid killing them.
2011-09-21 00:57:41 +02:00
Lennart Poettering
b1db68fa60 units: don't initialize automount point for securityfs if the initrd already mounted the directory 2011-09-21 00:50:41 +02:00
Lennart Poettering
ab7f148f81 unit: introduce ConditionPathIsMountPoint= 2011-09-21 00:50:40 +02:00
Michal Schmidt
418112a296 man: document which condition tests follow symlinks
ConditionPathExists and ConditionFileIsExecutable follow symlinks.
ConditionPathIsDirectory does not follow symlinks.
(XXX: is this actually the desired behavior?)
2011-09-20 13:13:17 +02:00
Michal Schmidt
cbe8269481 units: direct stdout/stderr of rescue shells to tty
With output of services going to syslog by default now, the rescue shell
units need to direct their output to tty explicitly.
Specify stderr too, just in case.
2011-09-20 12:15:48 +02:00
Bill Nottingham
d6bca18e28 units: Add support for automounting configfs, ala debugfs, etc. 2011-09-20 03:35:09 +02:00
Lennart Poettering
67d36a7a20 update TODO 2011-09-20 03:33:49 +02:00
Lennart Poettering
a94e09a5b9 stdout-syslog-bridge: properly handle overly long log lines 2011-09-20 02:46:04 +02:00
Lennart Poettering
00ca7f0782 service: drop broken support for X-Interactive fields in LSB headers
The logic never worked since reading from the boot console is useless
when a service is started after boot. Hence drop this half-baked code,
since we now have a place document incompatibilities like this.

http://www.freedesktop.org/wiki/Software/systemd/Incompatibilities
2011-09-20 01:33:48 +02:00
Lennart Poettering
34a2dc4bfc condition: in ConditionPathIsExecutable follow symlinks
https://bugzilla.redhat.com/show_bug.cgi?id=737047
2011-09-20 01:28:07 +02:00
Zbigniew Jędrzejewski-Szmek
79b1e6cb80 systemadm: use colors for id too, remove color from fragment link 2011-09-20 01:07:28 +02:00
Zbigniew Jędrzejewski-Szmek
fe7e28146f systemadm: adjust row numbers after removing 'aliases' 2011-09-20 01:07:28 +02:00
Zbigniew Jędrzejewski-Szmek
8f38d5a4c6 systemadm: coalesce id and decription fields
This is just in interest of saving space (e.g. 5 lines for multi-user.target).
2011-09-20 01:07:28 +02:00
Zbigniew Jędrzejewski-Szmek
734b60d796 systemadm: catch exceptions generated by dbus
Otherwise, access-denied dbus errors were not caught, and only
caused a message to be printed out on the console. After this
change a proper popup window pops up :).
2011-09-20 01:07:28 +02:00
Zbigniew Jędrzejewski-Szmek
37d3b881f1 systemadm: make the dependency listing selectable
There's no reason to forbid selecting the text.
2011-09-20 01:07:28 +02:00
Zbigniew Jędrzejewski-Szmek
8b1451ade7 systemadm: use bold for "requires", etc. 2011-09-20 01:07:28 +02:00
Zbigniew Jędrzejewski-Szmek
23b51f17b1 systemadm: use color for dependency links 2011-09-20 01:07:27 +02:00
Zbigniew Jędrzejewski-Szmek
8278f06953 systemadm: display dependencies sorted 2011-09-20 01:06:28 +02:00
Zbigniew Jędrzejewski-Szmek
11216eb0bd systemadm: add libgee as dependency and use it for a unit map 2011-09-20 01:06:01 +02:00
Zbigniew Jędrzejewski-Szmek
0dd27daff4 systemadm: add a wrappable label and use it for status lines
The new WrapLabel is there to work around a deficiency in GTK,
namely the fact that it is hard to make labels which are both
resizable and wrappable. The code is a port from libview.
2011-09-20 01:06:01 +02:00
Zbigniew Jędrzejewski-Szmek
e377ad0d11 systemadm: filter on swaps, paths, and timers too. 2011-09-20 01:06:01 +02:00
Zbigniew Jędrzejewski-Szmek
a3c159a23c systemadm: split the type+status combo box into type combo & status checkbox 2011-09-20 01:06:01 +02:00
Lennart Poettering
a373b0e7bc condition: opt out of /proc/cmdline parsing only when running in a container, not in a VM 2011-09-19 23:51:15 +02:00
Bastien Nocera
1e2591d48c hostnamed: Fix "SetStaticHostname" debug output
Was using the wrong property (eg. not the one we just set)

https://bugs.freedesktop.org/show_bug.cgi?id=40987
2011-09-19 22:39:29 +02:00