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

92 Commits

Author SHA1 Message Date
Lennart Poettering
f4c0514703 mount: properly parse timeouts options in the middle of the string 2011-04-19 22:09:34 +02:00
Lennart Poettering
8024c3a71a mount: make device timeout configurable 2011-04-16 04:39:50 +02:00
Lennart Poettering
c8f4d7642b manager: introduce IgnoreOnIsolate flag so that we can keep systemd-logger around when isolating 2011-04-16 02:03:34 +02:00
Lennart Poettering
d893269d9f mount: don't pull in stdio logger for root mount unit 2011-04-13 04:34:35 +02:00
Lennart Poettering
33ff02c9fe mount: block creation of mount units for API file systems 2011-04-05 23:39:21 +02:00
Lennart Poettering
da19d5c19f src: our lord is coverity 2011-03-31 15:35:40 +02:00
Lennart Poettering
cb39ed3fde quota: do not pull in quota tools for mounts that do not originate in neither /etc/fstab nor fragment files 2011-03-30 01:53:34 +02:00
Lennart Poettering
cd25cce98f exec: drop process group kill mode since it has little use and confuses the user 2011-03-29 23:31:38 +02:00
Kay Sievers
2b583ce657 use /run instead of /dev/.run
Instead of the /dev/.run trick we have currently implemented, we decided
to move the early-boot runtime dir to /run.

An existing /var/run directory is bind-mounted to /run. If /var/run is
already a symlink, no action is taken.

An existing /var/lock directory is bind-mounted to /run/lock.
If /var/lock is already a symlink, no action is taken.

To implement the directory vs. symlink logic, we have a:
  ConditionPathIsDirectory=
now, which is used in the mount units.

Skipped mount unit in case of symlink:
  $ systemctl status var-run.mount
  var-run.mount - Runtime Directory
    Loaded: loaded (/lib/systemd/system/var-run.mount)
    Active: inactive (dead)
            start condition failed at Fri, 25 Mar 2011 04:51:41 +0100; 6min ago
     Where: /var/run
      What: /run
    CGroup: name=systemd:/system/var-run.mount

The systemd rpm needs to make sure to add something like:
  %pre
  mkdir -p -m0755 /run >/dev/null 2>&1 || :
or it needs to be added to filesystem.rpm.

Udev -git already uses /run if that exists, and is writable at bootup.
Otherwise it falls back to the current /dev/.udev.

Dracut and plymouth need to be adopted to switch from /dev/.run to run
too.

Cheers,
Kay
2011-03-28 23:00:00 +02:00
Andrey Borzenkov
0c380104cf mount: pull in quota services from local mountpoints with usr/grpquota options 2011-03-18 19:12:58 +03:00
Lennart Poettering
f6a6225e41 def: centralize definition of default timeout in one place 2011-03-17 04:02:35 +01:00
Lennart Poettering
d4a7e06dea mount: support less cumbersome x-systemd-xxx mount options 2011-03-08 03:08:15 +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
50483512b9 mount: make sure network mounts are ordered after network.target 2011-02-21 13:32:18 +01:00
Lennart Poettering
27abbe8251 mount,swap: properly add dependencies to logger if needed 2011-02-15 12:28:26 +01:00
Lennart Poettering
0a494f1ff3 exec: introduce global defaults for the standard output of services 2011-02-15 11:52:29 +01:00
Lennart Poettering
ff2e0f0514 mount: ignore if an fsck is requested for a bind mount, so that we don't wait for the bind 'device' to show up 2011-01-21 01:28:30 +01:00
Lennart Poettering
e0fa621b8b automount: fix segfault when shutting down
https://bugs.freedesktop.org/show_bug.cgi?id=32076
2011-01-21 01:13:15 +01:00
Lennart Poettering
9a57c62944 systemctl: highlight failed processes in systemctl status 2011-01-20 18:22:03 +01:00
Lennart Poettering
e2f3b44cfc service: when reloading a service fails don't fail the entire service but just the reload job 2011-01-20 13:17:22 +01:00
Lennart Poettering
ba035df230 execute: make sending of SIGKILL on shutdown optional 2011-01-18 22:55:54 +01:00
Lennart Poettering
d686d8a97b cgroup: by default, duplicate service cgroup in the cpu hierarchy 2010-11-17 21:27:53 +01:00
Kay Sievers
57f2a956e6 split mount_point_is_api() and mount_point_ignore()
We should not handle the ignore list as API mounts, as
systemd itself never touches them.

On Thu, Nov 11, 2010 at 10:34, Andreas Jaeger <aj@novell.com> wrote:
>
> I noticed for some time that systemd-remount-api-vfs is in the
> failed state and found now the following in the log files
>
> systemd-remount-api-vfs[467]: /bin/mount for /proc/bus/usb exited with exit status 32.
> systemd-remount-api-vfs[467]: mount: /proc/bus/usb not mounted already, or bad option
> systemd[1]: systemd-remount-api-vfs.service: main process exited, code=exited, status=1
> systemd[1]: Unit systemd-remount-api-vfs.service entered failed state.
2010-11-11 11:15:16 +01:00
Lennart Poettering
e23a0ce8ba cryptsetup: minimal cryptsetup unit generator 2010-11-10 22:38:43 +01:00
Lennart Poettering
d91430063e mount: don't pull in nofail mounts by default, but use them if they are around 2010-10-29 16:28:30 +02:00
Lennart Poettering
ead8e4788e unit: get rid of gnoreDependencyFailure= instead treat ConflictedBy= as weaker counterpart of Conflicts=, similar to Wants= vs. Requires= 2010-10-29 16:28:27 +02:00
Lennart Poettering
b81884e746 unit: replace StopRetroactively= by BindTo= dependencies
The property StopRetroactively= needs to be per-dependency, not
per-unit, in order to properly express dependencies between .mount units
and its .device and fsck .service units. If the .device unit is
unplugged the mount should go away, but if the fsck process terminates
the .mount should stay.
2010-10-29 00:45:46 +02:00
Lennart Poettering
f14e15f8af unit: replace recursive_stop by stop_retroactively to simplify things a little 2010-10-28 03:38:52 +02:00
Lennart Poettering
510051fc12 swap: add only swaps listed in /etc/fstab automatically to swap.target, others should be added via .wants/ links 2010-10-26 22:58:54 +02:00
Lennart Poettering
8a0867d6c5 systemctl: introduce systemctl kill 2010-10-22 16:11:50 +02:00
Lennart Poettering
417e842dc3 mount: pull in quotacheck.service, not quotacheck.target 2010-10-20 15:21:44 +02:00
Lennart Poettering
0355825f59 mount: require fsck 2010-10-20 15:21:05 +02:00
Lennart Poettering
b65a25f256 mount: do not implicitly pull in fsck service for root dir 2010-10-20 14:26:46 +02:00
Lennart Poettering
a9e1f5ec36 fsck: properly hook in fsck everywhere, add special support for fsck'ing root dir 2010-10-19 23:45:18 +02:00
Lennart Poettering
4e4343146a swap: listen for POLLPRI events on /proc/swaps if available 2010-10-18 23:09:09 +02:00
Lennart Poettering
491ad5dc66 mount: pull in fsck only in systemd instances 2010-10-13 17:18:36 +02:00
Lennart Poettering
9fff8a1f16 mount: hook in q fsck@.service instance for all mount points with passno > 0 2010-10-13 03:57:04 +02:00
Lennart Poettering
60b912f6b1 mount: minor cleanups 2010-10-12 04:08:04 +02:00
Lennart Poettering
169c1bda80 service: optionally, create INIT_PROCESS/DEAD_PROCESS entries for a service
This should fix accounting for pam_limits and suchlike.

https://bugzilla.redhat.com/show_bug.cgi?id=636036
2010-10-08 16:07:50 +02:00
Lennart Poettering
40b8a33210 mount: properly handle NULL fstype
https://bugzilla.redhat.com/show_bug.cgi?id=636752
2010-10-08 02:43:08 +02:00
Fabiano Fidêncio
1ddff895f3 mount: Don't stop the mountinfo parser if one line can't be read
The current behavior of the /proc/self/mountinfo parser
is to stop the parser on parse failures

I'm only changing this behavior to try the next line and adding
a warning if occurs a fail.
2010-10-05 22:26:28 +02:00
Dave Reisner
c899f8c61a fix typo: s/seperat/separat/g 2010-10-05 21:50:56 +02:00
Lennart Poettering
a55da3cd5e mount: sort network mounts after network.target by default 2010-10-05 19:50:00 +02:00
Lennart Poettering
5c78d8e242 mount: properly handle bind mounts 2010-09-28 01:03:19 +02:00
Fabiano Fidencio
334d0069f5 mount: Remove double include of "mount.h" 2010-09-27 01:34:58 +02:00
Lennart Poettering
97c4a07df9 vconsole: add new utility to initialize the virtual console 2010-09-16 00:36:41 +02:00
Lennart Poettering
ca949c9dcf service: rework killing logic so that we always kill the main process, even if it left our service cgroup
Related to:

http://bugzilla.redhat.com/show_bug.cgi?id=626477
2010-08-31 23:24:47 +02:00
Matthew Miller
fdf20a3160 manager: add missing second part of s/maintenance/failed/ 2010-08-31 00:23:34 +02:00
Lennart Poettering
81bf310edc mount: imply noauto for mount points configured with native mount files 2010-08-25 21:24:21 +02:00
Lennart Poettering
173a8d04fc mount: rework automatic mounting to follow the 'nofail' option in fstab 2010-08-25 20:37:04 +02:00