From 12b42c76672a66c2d4ea7212c14f8f1b5a62b78d Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 18 Jun 2015 19:47:44 +0200 Subject: man: revert dynamic paths for split-usr setups This did not really work out as we had hoped. Trying to do this upstream introduced several problems that probably makes it better suited as a downstream patch after all. At any rate, it is not releaseable in the current state, so we at least need to revert this before the release. * by adjusting the path to binaries, but not do the same thing to the search path we end up with inconsistent man-pages. Adjusting the search path too would be quite messy, and it is not at all obvious that this is worth the effort, but at any rate it would have to be done before we could ship this. * this means that distributed man-pages does not make sense as they depend on config options, and for better or worse we are still distributing man pages, so that is something that definitely needs sorting out before we could ship with this patch. * we have long held that split-usr is only minimally supported in order to boot, and something we hope will eventually go away. So before we start adding even more magic/effort in order to make this work nicely, we should probably question if it makes sense at all. --- man/systemd.unit.xml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'man/systemd.unit.xml') diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 8286cf3f78..0aa1eeac77 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -64,20 +64,20 @@ slice.slice, scope.scope - &pkgsysconfdir;/system/* + /etc/systemd/system/* /run/systemd/system/* -&rootlibexecdir;/system/* +/usr/lib/systemd/system/* ... $XDG_CONFIG_HOME/systemd/user/* $HOME/.config/systemd/user/* -&pkgsysconfdir;/user/* +/etc/systemd/user/* $XDG_RUNTIME_DIR/systemd/user/* /run/systemd/user/* $XDG_DATA_HOME/systemd/user/* $HOME/.local/share/systemd/user/* -&rootlibexecdir;/user/* +/usr/lib/systemd/user/* ... @@ -287,7 +287,7 @@ - &pkgsysconfdir;/system + /etc/systemd/system Local configuration @@ -295,7 +295,7 @@ Runtime units - &rootlibexecdir;/system + /usr/lib/systemd/system Units of installed packages @@ -326,7 +326,7 @@ User configuration (only used when $XDG_CONFIG_HOME is not set) - &pkgsysconfdir;/user + /etc/systemd/user Local configuration @@ -346,7 +346,7 @@ Units of packages that have been installed in the home directory (only used when $XDG_DATA_HOME is not set) - &rootlibexecdir;/user + /usr/lib/systemd/user Units of packages that have been installed system-wide @@ -1296,7 +1296,7 @@ ExecStart=/usr/sbin/foo-daemon After running systemctl enable, a symlink - &pkgsysconfdir;/system/multi-user.target.wants/foo.service + /etc/systemd/system/multi-user.target.wants/foo.service linking to the actual unit will be created. It tells systemd to pull in the unit when starting multi-user.target. The inverse @@ -1309,11 +1309,11 @@ ExecStart=/usr/sbin/foo-daemon There are two methods of overriding vendor settings in unit files: copying the unit file from - &rootlibexecdir;/system to - &pkgsysconfdir;/system and modifying the + /usr/lib/systemd/system to + /etc/systemd/system and modifying the chosen settings. Alternatively, one can create a directory named unit.d/ within - &pkgsysconfdir;/system and place a drop-in + /etc/systemd/system and place a drop-in file name.conf there that only changes the specific settings one is interested in. Note that multiple such drop-in files are read if @@ -1343,7 +1343,7 @@ ExecStart=/usr/sbin/foo-daemon load paths for further details. Suppose there is a vendor-supplied unit - &rootlibexecdir;/system/httpd.service with + /usr/lib/systemd/system/httpd.service with the following contents: [Unit] @@ -1375,7 +1375,7 @@ WantedBy=multi-user.target the niceness of the service to its default value of 0. The first possibility is to copy the unit file to - &pkgsysconfdir;/system/httpd.service and + /etc/systemd/system/httpd.service and change the chosen settings: [Unit] @@ -1395,7 +1395,7 @@ WantedBy=multi-user.target Alternatively, the administrator could create a drop-in file - &pkgsysconfdir;/system/httpd.service.d/local.conf + /etc/systemd/system/httpd.service.d/local.conf with the following contents: [Unit] -- cgit v1.2.3-54-g00ecf