Replace /var/run with /run in remaining places
/run was already used almost everywhere, fix the remaining places for consistency.
This commit is contained in:
parent
f513e420c8
commit
41a55c46ab
|
@ -149,7 +149,7 @@
|
||||||
write the daemon PID (as returned by
|
write the daemon PID (as returned by
|
||||||
<function>getpid()</function>) to a
|
<function>getpid()</function>) to a
|
||||||
PID file, for example
|
PID file, for example
|
||||||
<filename>/var/run/foobar.pid</filename>
|
<filename>/run/foobar.pid</filename>
|
||||||
(for a hypothetical daemon "foobar")
|
(for a hypothetical daemon "foobar")
|
||||||
to ensure that the daemon cannot be
|
to ensure that the daemon cannot be
|
||||||
started more than once. This must be
|
started more than once. This must be
|
||||||
|
|
|
@ -124,7 +124,7 @@
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><filename>/var/run/utmp</filename></term>
|
<term><filename>/run/utmp</filename></term>
|
||||||
|
|
||||||
<listitem><para>The utmp database
|
<listitem><para>The utmp database
|
||||||
<command>runlevel</command> reads the
|
<command>runlevel</command> reads the
|
||||||
|
|
|
@ -441,8 +441,8 @@ r! /tmp/.X[0-9]*-lock</programlisting>
|
||||||
<title>/etc/tmpfiles.d/screen.conf example</title>
|
<title>/etc/tmpfiles.d/screen.conf example</title>
|
||||||
<para><command>screen</command> needs two directories created at boot with specific modes and ownership.</para>
|
<para><command>screen</command> needs two directories created at boot with specific modes and ownership.</para>
|
||||||
|
|
||||||
<programlisting>d /var/run/screens 1777 root root 10d
|
<programlisting>d /run/screens 1777 root root 10d
|
||||||
d /var/run/uscreens 0755 root root 10d12h</programlisting>
|
d /run/uscreens 0755 root root 10d12h</programlisting>
|
||||||
</example>
|
</example>
|
||||||
<example>
|
<example>
|
||||||
<title>/etc/tmpfiles.d/abrt.conf example</title>
|
<title>/etc/tmpfiles.d/abrt.conf example</title>
|
||||||
|
|
|
@ -794,8 +794,8 @@ static int parse_container_unix_address(sd_bus *b, const char **p, char **guid)
|
||||||
machine = NULL;
|
machine = NULL;
|
||||||
|
|
||||||
b->sockaddr.un.sun_family = AF_UNIX;
|
b->sockaddr.un.sun_family = AF_UNIX;
|
||||||
strncpy(b->sockaddr.un.sun_path, "/var/run/dbus/system_bus_socket", sizeof(b->sockaddr.un.sun_path));
|
strncpy(b->sockaddr.un.sun_path, "/run/dbus/system_bus_socket", sizeof(b->sockaddr.un.sun_path));
|
||||||
b->sockaddr_size = offsetof(struct sockaddr_un, sun_path) + sizeof("/var/run/dbus/system_bus_socket") - 1;
|
b->sockaddr_size = offsetof(struct sockaddr_un, sun_path) + strlen("/run/dbus/system_bus_socket");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3758,8 +3758,8 @@ static int show_one(
|
||||||
streq(verb, "status")) {
|
streq(verb, "status")) {
|
||||||
/* According to LSB: "program not running" */
|
/* According to LSB: "program not running" */
|
||||||
/* 0: program is running or service is OK
|
/* 0: program is running or service is OK
|
||||||
* 1: program is dead and /var/run pid file exists
|
* 1: program is dead and /run PID file exists
|
||||||
* 2: program is dead and /var/lock lock file exists
|
* 2: program is dead and /run/lock lock file exists
|
||||||
* 3: program is not running
|
* 3: program is not running
|
||||||
* 4: program or service status is unknown
|
* 4: program or service status is unknown
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue