From: Zbigniew Jędrzejewski-Szmek Date: Wed, 26 Feb 2014 01:11:04 +0000 (-0500) Subject: Replace /var/run with /run in remaining places X-Git-Tag: v211~199 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=41a55c46ab8fb4ef6727434227071321fc762cce Replace /var/run with /run in remaining places /run was already used almost everywhere, fix the remaining places for consistency. --- diff --git a/man/daemon.xml b/man/daemon.xml index 88dd082a3..fd29ba722 100644 --- a/man/daemon.xml +++ b/man/daemon.xml @@ -149,7 +149,7 @@ write the daemon PID (as returned by getpid()) to a PID file, for example - /var/run/foobar.pid + /run/foobar.pid (for a hypothetical daemon "foobar") to ensure that the daemon cannot be started more than once. This must be diff --git a/man/runlevel.xml b/man/runlevel.xml index 976753a73..4db06dc87 100644 --- a/man/runlevel.xml +++ b/man/runlevel.xml @@ -124,7 +124,7 @@ - /var/run/utmp + /run/utmp The utmp database runlevel reads the diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml index 812129f61..0a006d17a 100644 --- a/man/tmpfiles.d.xml +++ b/man/tmpfiles.d.xml @@ -441,8 +441,8 @@ r! /tmp/.X[0-9]*-lock /etc/tmpfiles.d/screen.conf example screen needs two directories created at boot with specific modes and ownership. - d /var/run/screens 1777 root root 10d -d /var/run/uscreens 0755 root root 10d12h + d /run/screens 1777 root root 10d +d /run/uscreens 0755 root root 10d12h /etc/tmpfiles.d/abrt.conf example diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c index 20f540df5..131827208 100644 --- a/src/libsystemd/sd-bus/sd-bus.c +++ b/src/libsystemd/sd-bus/sd-bus.c @@ -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; } diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 34d707929..869271628 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -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 */