1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00
systemd/units
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
..
fedora plymouth: move plymouth out of TARGET_FEDORA 2011-02-08 18:47:32 +01:00
frugalware Add Frugalware display-manager service 2011-03-16 03:53:55 +01:00
mandriva units: replace Names=dm.service with symlink for mandriva prefdm 2011-03-18 19:32:49 +03:00
user drop support for MANAGER_SESSION, introduce MANAGER_USER instead 2010-11-15 22:13:26 +01:00
.gitignore units: we don't need to generate syslog.target with sed anymore 2011-03-18 05:01:30 +01:00
basic.target units: make fedora/single.service standard and rename it to rescue.service 2010-10-29 16:28:29 +02:00
bluetooth.target units: add missing target files 2010-07-13 04:05:31 +02:00
console-shell.service.m4 units: add console-shell.service which can be used insted of the gettys to get a shell on /dev/console 2011-03-14 21:00:53 +01:00
cryptsetup.target cryptsetup: fix ordering loop when dealing with encrypted swap devices 2011-01-21 03:30:18 +01:00
dev-hugepages.automount units: move a couple of units from base.target to sysinit.target 2010-11-19 16:24:21 +01:00
dev-hugepages.mount mount: add automatic start ordering dependencies for mounts 2010-07-12 22:55:27 +02:00
dev-mqueue.automount units: move a couple of units from base.target to sysinit.target 2010-11-19 16:24:21 +01:00
dev-mqueue.mount mount: add automatic start ordering dependencies for mounts 2010-07-12 22:55:27 +02:00
emergency.service rescue: terminate plymouth entirely when going into rescue mode 2011-02-23 18:42:08 +01:00
emergency.target unit: introduce AllowIsolate= switch 2010-08-30 23:04:36 +02:00
final.target 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
fsck-root.service.in use /run instead of /dev/.run 2011-03-28 23:00:00 +02:00
fsck@.service.in unit: don't timeout fsck 2011-02-20 20:27:59 +01:00
getty.target units: getty.target is pulled in via /lib these days 2010-09-29 03:03:37 +02:00
getty@.service.m4 build-sys: add Mandriva distribution support 2011-03-08 19:47:36 +01:00
graphical.target units: we no longer need m4 to build graphical.target or multi-user.taregt 2011-03-18 04:59:05 +01:00
halt.service.in units: introduce final.target that can be used to plug units between shutdown.target and the final shutdown 2010-10-14 03:07:36 +02:00
halt.target target: implicitly shutdown targets on shutdown, so that they are pulled into the final transaction and may be used for synchronization 2010-09-03 01:42:57 +02:00
http-daemon.target units: document that some targets exists only for compat with SysV 2011-03-18 05:12:34 +01:00
hwclock-load.service Fix misspellings in os-release manpage and hwclock-load.service 2010-12-20 16:30:59 +01:00
hwclock-save.service units: simplify shutdown scripts 2010-11-23 01:37:18 +01:00
kexec.service.in units: introduce final.target that can be used to plug units between shutdown.target and the final shutdown 2010-10-14 03:07:36 +02:00
kexec.target units: introduce kexec.service, kexec.target and exit.target 2010-10-14 00:57:52 +02:00
local-fs.target shorten copyright header of configuration files 2010-05-19 22:14:29 +02:00
mail-transfer-agent.target units: document that some targets exists only for compat with SysV 2011-03-18 05:12:34 +01:00
Makefile build-sys: add small redirecting Makefiles to simplify compilation from within emacs 2010-05-17 01:44:03 +02:00
media.mount mount: make /media a tmpfs 2011-03-07 17:38:15 +01:00
multi-user.target units: we no longer need m4 to build graphical.target or multi-user.taregt 2011-03-18 04:59:05 +01:00
network.target shorten copyright header of configuration files 2010-05-19 22:14:29 +02:00
nss-lookup.target units: don't ever pull in SysV targets from other SysV targets 2011-03-18 05:13:06 +01:00
plymouth-halt.service plymouth: move plymouth out of TARGET_FEDORA 2011-02-08 18:47:32 +01:00
plymouth-kexec.service plymouth: move plymouth out of TARGET_FEDORA 2011-02-08 18:47:32 +01:00
plymouth-poweroff.service plymouth: move plymouth out of TARGET_FEDORA 2011-02-08 18:47:32 +01:00
plymouth-quit-wait.service units: synchronize gettys to plymouth even if plymouth is killed by gdm 2011-02-24 02:32:50 +01:00
plymouth-quit.service plymouth: don't wait forever for plymouth in case it is stuck 2011-02-22 18:51:44 +01:00
plymouth-read-write.service plymouth: move plymouth out of TARGET_FEDORA 2011-02-08 18:47:32 +01:00
plymouth-reboot.service plymouth: move plymouth out of TARGET_FEDORA 2011-02-08 18:47:32 +01:00
plymouth-start.service use /run instead of /dev/.run 2011-03-28 23:00:00 +02:00
poweroff.service.in units: introduce final.target that can be used to plug units between shutdown.target and the final shutdown 2010-10-14 03:07:36 +02:00
poweroff.target units: get rid of runlevel Names=, the symlinks in /lib/systemd/system are much more useful 2011-03-18 04:53:31 +01:00
printer.target units: add missing target files 2010-07-13 04:05:31 +02:00
proc-sys-fs-binfmt_misc.automount units: move a couple of units from base.target to sysinit.target 2010-11-19 16:24:21 +01:00
proc-sys-fs-binfmt_misc.mount mount: add automatic start ordering dependencies for mounts 2010-07-12 22:55:27 +02:00
quotacheck.service.in mount: pull in quota services from local mountpoints with usr/grpquota options 2011-03-18 19:12:58 +03:00
quotaon.service mount: pull in quota services from local mountpoints with usr/grpquota options 2011-03-18 19:12:58 +03:00
reboot.service.in units: introduce final.target that can be used to plug units between shutdown.target and the final shutdown 2010-10-14 03:07:36 +02:00
reboot.target units: get rid of runlevel Names=, the symlinks in /lib/systemd/system are much more useful 2011-03-18 04:53:31 +01:00
remote-fs.target.m4 units: don't ever pull in SysV targets from other SysV targets 2011-03-18 05:13:06 +01:00
remount-rootfs.service syslog: enable kmsg bridge by default and enable syslogging for early boot services 2010-10-20 17:48:01 +02:00
rescue.service.m4 units: on mandriva/fedora create single.service alias via symlink, not Names= 2011-03-18 04:53:31 +01:00
rescue.target units: get rid of runlevel Names=, the symlinks in /lib/systemd/system are much more useful 2011-03-18 04:53:31 +01:00
rpcbind.target units: document that some targets exists only for compat with SysV 2011-03-18 05:12:34 +01:00
rtc-set.target units: document that some targets exists only for compat with SysV 2011-03-18 05:12:34 +01:00
serial-getty@.service.m4 build-sys: add Mandriva distribution support 2011-03-08 19:47:36 +01:00
shutdown.target 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
sigpwr.target shorten copyright header of configuration files 2010-05-19 22:14:29 +02:00
smartcard.target units: introduce smartcard.target 2010-07-16 21:32:11 +02:00
sockets.target shorten copyright header of configuration files 2010-05-19 22:14:29 +02:00
sound.target units: introduce and hook up sound.target 2011-02-09 21:07:53 +01:00
swap.target shorten copyright header of configuration files 2010-05-19 22:14:29 +02:00
sys-kernel-debug.automount units: move a couple of units from base.target to sysinit.target 2010-11-19 16:24:21 +01:00
sys-kernel-debug.mount mount: add automatic start ordering dependencies for mounts 2010-07-12 22:55:27 +02:00
sys-kernel-security.automount units: move a couple of units from base.target to sysinit.target 2010-11-19 16:24:21 +01:00
sys-kernel-security.mount mount: add automatic start ordering dependencies for mounts 2010-07-12 22:55:27 +02:00
sysinit.target units: make fedora/single.service standard and rename it to rescue.service 2010-10-29 16:28:29 +02:00
syslog.socket units: pull in syslog.target from syslog.socket 2011-03-18 05:17:02 +01:00
syslog.target units: document that some targets exists only for compat with SysV 2011-03-18 05:12:34 +01:00
systemd-ask-password-console.path use /run instead of /dev/.run 2011-03-28 23:00:00 +02:00
systemd-ask-password-console.service.in units: enable console ask-password agent by default 2010-11-18 05:22:25 +01:00
systemd-ask-password-plymouth.path use /run instead of /dev/.run 2011-03-28 23:00:00 +02:00
systemd-ask-password-plymouth.service.in units: enable console ask-password agent by default 2010-11-18 05:22:25 +01:00
systemd-ask-password-wall.path use /run instead of /dev/.run 2011-03-28 23:00:00 +02:00
systemd-ask-password-wall.service.in units: enable console ask-password agent by default 2010-11-18 05:22:25 +01:00
systemd-initctl.service.in syslog: enable kmsg bridge by default and enable syslogging for early boot services 2010-10-20 17:48:01 +02:00
systemd-initctl.socket syslog: enable kmsg bridge by default and enable syslogging for early boot services 2010-10-20 17:48:01 +02:00
systemd-kmsg-syslogd.service.in syslog: enable kmsg bridge by default and enable syslogging for early boot services 2010-10-20 17:48:01 +02:00
systemd-logger.service.in exec: introduce global defaults for the standard output of services 2011-02-15 11:52:29 +01:00
systemd-logger.socket use /run instead of /dev/.run 2011-03-28 23:00:00 +02:00
systemd-modules-load.service.in units: move a couple of units from base.target to sysinit.target 2010-11-19 16:24:21 +01:00
systemd-random-seed-load.service.in units: move a couple of units from base.target to sysinit.target 2010-11-19 16:24:21 +01:00
systemd-random-seed-save.service.in units: simplify shutdown scripts 2010-11-23 01:37:18 +01:00
systemd-readahead-collect.service.in units: move a couple of units from base.target to sysinit.target 2010-11-19 16:24:21 +01:00
systemd-readahead-done.service.in units: properly terminate readahead collection 10s after boot 2010-09-29 02:55:36 +02:00
systemd-readahead-done.timer units: properly terminate readahead collection 10s after boot 2010-09-29 02:55:36 +02:00
systemd-readahead-replay.service.in units: move a couple of units from base.target to sysinit.target 2010-11-19 16:24:21 +01:00
systemd-remount-api-vfs.service.in syslog: enable kmsg bridge by default and enable syslogging for early boot services 2010-10-20 17:48:01 +02:00
systemd-shutdownd.service.in syslog: enable kmsg bridge by default and enable syslogging for early boot services 2010-10-20 17:48:01 +02:00
systemd-shutdownd.socket use /run instead of /dev/.run 2011-03-28 23:00:00 +02:00
systemd-sysctl.service.in unit: distuingish mandatory from triggering conditions 2011-03-08 03:04:47 +01:00
systemd-tmpfiles-clean.service.in tmpfiles: move binary to /bin to make it publicly available 2011-02-13 14:04:57 +01:00
systemd-tmpfiles-clean.timer tmpfiles: integrate kay's directory cleanup code and otherwise beef up tmpfiles quite a bit 2010-10-18 22:38:41 +02:00
systemd-tmpfiles-setup.service.in tmpfiles: move binary to /bin to make it publicly available 2011-02-13 14:04:57 +01:00
systemd-update-utmp-runlevel.service.in units: Since killall.service does not exist anymore remove all references. 2010-10-25 23:54:36 +02:00
systemd-update-utmp-shutdown.service.in units: Since killall.service does not exist anymore remove all references. 2010-10-25 23:54:36 +02:00
systemd-user-sessions.service.in systemd-user-sessions: install .service file and enable by default 2010-10-07 23:48:48 +02:00
systemd-vconsole-setup.service.in units: move a couple of units from base.target to sysinit.target 2010-11-19 16:24:21 +01:00
umount.target 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
var-lock.mount use /run instead of /dev/.run 2011-03-28 23:00:00 +02:00
var-run.mount use /run instead of /dev/.run 2011-03-28 23:00:00 +02:00