|
Zbigniew Jędrzejewski-Szmek |
47c564 |
From a980c3fa6bee1b4f0185d9d317c1bbf30ce6b832 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
Date: Tue, 25 Feb 2014 20:11:04 -0500
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
Subject: [PATCH] Replace /var/run with /run in remaining places
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
/run was already used almost everywhere, fix the remaining places
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
for consistency.
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
(cherry picked from commit 41a55c46ab8fb4ef6727434227071321fc762cce)
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
man/daemon.xml | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
man/runlevel.xml | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
man/tmpfiles.d.xml | 4 ++--
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
src/libsystemd/sd-bus/sd-bus.c | 4 ++--
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
src/systemctl/systemctl.c | 4 ++--
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
5 files changed, 8 insertions(+), 8 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
diff --git a/man/daemon.xml b/man/daemon.xml
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
index 88dd082..fd29ba7 100644
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
--- a/man/daemon.xml
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
+++ b/man/daemon.xml
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
@@ -149,7 +149,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
write the daemon PID (as returned by
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
<function>getpid()</function>) to a
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
PID file, for example
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
- <filename>/var/run/foobar.pid</filename>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
+ <filename>/run/foobar.pid</filename>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
(for a hypothetical daemon "foobar")
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
to ensure that the daemon cannot be
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
started more than once. This must be
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
diff --git a/man/runlevel.xml b/man/runlevel.xml
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
index 976753a..4db06dc 100644
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
--- a/man/runlevel.xml
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
+++ b/man/runlevel.xml
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
@@ -124,7 +124,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
<variablelist>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
- <term><filename>/var/run/utmp</filename></term>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
+ <term><filename>/run/utmp</filename></term>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
<listitem><para>The utmp database
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
<command>runlevel</command> reads the
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
index 812129f..0a006d1 100644
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
--- a/man/tmpfiles.d.xml
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
+++ b/man/tmpfiles.d.xml
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
@@ -441,8 +441,8 @@ r! /tmp/.X[0-9]*-lock</programlisting>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
<title>/etc/tmpfiles.d/screen.conf example</title>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
<para><command>screen</command> needs two directories created at boot with specific modes and ownership.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
- <programlisting>d /var/run/screens 1777 root root 10d
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
-d /var/run/uscreens 0755 root root 10d12h</programlisting>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
+ <programlisting>d /run/screens 1777 root root 10d
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
+d /run/uscreens 0755 root root 10d12h</programlisting>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
</example>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
<example>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
<title>/etc/tmpfiles.d/abrt.conf example</title>
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
index 20f540d..1318272 100644
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
--- a/src/libsystemd/sd-bus/sd-bus.c
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
+++ b/src/libsystemd/sd-bus/sd-bus.c
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
@@ -794,8 +794,8 @@ static int parse_container_unix_address(sd_bus *b, const char **p, char **guid)
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
machine = NULL;
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
b->sockaddr.un.sun_family = AF_UNIX;
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
- strncpy(b->sockaddr.un.sun_path, "/var/run/dbus/system_bus_socket", sizeof(b->sockaddr.un.sun_path));
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
- b->sockaddr_size = offsetof(struct sockaddr_un, sun_path) + sizeof("/var/run/dbus/system_bus_socket") - 1;
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
+ strncpy(b->sockaddr.un.sun_path, "/run/dbus/system_bus_socket", sizeof(b->sockaddr.un.sun_path));
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
+ b->sockaddr_size = offsetof(struct sockaddr_un, sun_path) + strlen("/run/dbus/system_bus_socket");
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
return 0;
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
}
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
index 34d7079..8692716 100644
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
--- a/src/systemctl/systemctl.c
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
+++ b/src/systemctl/systemctl.c
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
@@ -3758,8 +3758,8 @@ static int show_one(
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
streq(verb, "status")) {
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
/* According to LSB: "program not running" */
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
/* 0: program is running or service is OK
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
- * 1: program is dead and /var/run pid file exists
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
- * 2: program is dead and /var/lock lock file exists
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
+ * 1: program is dead and /run PID file exists
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
+ * 2: program is dead and /run/lock lock file exists
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
* 3: program is not running
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
* 4: program or service status is unknown
|
|
Zbigniew Jędrzejewski-Szmek |
47c564 |
*/
|