chiark / gitweb /
Replace /var/run with /run in remaining places
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Feb 2014 01:11:04 +0000 (20:11 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Feb 2014 01:41:24 +0000 (20:41 -0500)
/run was already used almost everywhere, fix the remaining places
for consistency.

man/daemon.xml
man/runlevel.xml
man/tmpfiles.d.xml
src/libsystemd/sd-bus/sd-bus.c
src/systemctl/systemctl.c

index 88dd082a33e356d2a3ece0deedc0aaa406ff109e..fd29ba722d7d131387b5210dcb05df891d23ef51 100644 (file)
                                 write the daemon PID (as returned by
                                 <function>getpid()</function>) to a
                                 PID file, for example
-                                <filename>/var/run/foobar.pid</filename>
+                                <filename>/run/foobar.pid</filename>
                                 (for a hypothetical daemon "foobar")
                                 to ensure that the daemon cannot be
                                 started more than once. This must be
index 976753a737ff8ae0da9053266ea5c6b90897ade5..4db06dc87c9ac94a50da7cdf785077f8c447083c 100644 (file)
 
                 <variablelist>
                         <varlistentry>
-                                <term><filename>/var/run/utmp</filename></term>
+                                <term><filename>/run/utmp</filename></term>
 
                                 <listitem><para>The utmp database
                                 <command>runlevel</command> reads the
index 812129f6132edceb5d1d56ba0de35f2d23e9892d..0a006d17abcdef60bd2fd7b94988b05f22cdbd53 100644 (file)
@@ -441,8 +441,8 @@ r! /tmp/.X[0-9]*-lock</programlisting>
                         <title>/etc/tmpfiles.d/screen.conf example</title>
                         <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
-d /var/run/uscreens 0755 root root 10d12h</programlisting>
+                        <programlisting>d /run/screens  1777 root root 10d
+d /run/uscreens 0755 root root 10d12h</programlisting>
                 </example>
                 <example>
                         <title>/etc/tmpfiles.d/abrt.conf example</title>
index 20f540df5802afcc4179fa555835617e621b6f93..1318272085acd3550cdd842f05e03b6d960ad9a4 100644 (file)
@@ -794,8 +794,8 @@ static int parse_container_unix_address(sd_bus *b, const char **p, char **guid)
         machine = NULL;
 
         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));
-        b->sockaddr_size = offsetof(struct sockaddr_un, sun_path) + sizeof("/var/run/dbus/system_bus_socket") - 1;
+        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) + strlen("/run/dbus/system_bus_socket");
 
         return 0;
 }
index 34d70792990f122233665ab098b0cdb1f90c4d0b..869271628f8a344b902518e389a2beb7e5cb5fba 100644 (file)
@@ -3758,8 +3758,8 @@ static int show_one(
             streq(verb, "status")) {
                 /* According to LSB: "program not running" */
                 /* 0: program is running or service is OK
-                 * 1: program is dead and /var/run pid file exists
-                 * 2: program is dead and /var/lock lock file exists
+                 * 1: program is dead and /run PID file exists
+                 * 2: program is dead and /run/lock lock file exists
                  * 3: program is not running
                  * 4: program or service status is unknown
                  */