chiark / gitweb /
change remaining /var/run to /run
authorKay Sievers <kay.sievers@vrfy.org>
Mon, 4 Apr 2011 13:33:00 +0000 (15:33 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 4 Apr 2011 13:33:00 +0000 (15:33 +0200)
src/bridge.c
src/shutdownd.c
src/tmpfiles.c
src/user-sessions.c

index 5ee058a37fcbaaa00433023aa174b85a3017e0e1..878856cfd6e4123db297d489b013df45045f3754 100644 (file)
@@ -158,7 +158,7 @@ int main(int argc, char *argv[]) {
 
         zero(sa);
         sa.un.sun_family = AF_UNIX;
-        strncpy(sa.un.sun_path, "/var/run/dbus/system_bus_socket", sizeof(sa.un.sun_path));
+        strncpy(sa.un.sun_path, "/run/dbus/system_bus_socket", sizeof(sa.un.sun_path));
 
         if (connect(fd, &sa.sa, offsetof(struct sockaddr_un, sun_path) + 1 + strlen(sa.un.sun_path+1)) < 0) {
                 log_error("Failed to connect: %m");
index 6b92ceeb1e0597b10858d72231bfd9c46daed8a0..8f765b45172388d89076a527ef81d4522636e3b2 100644 (file)
@@ -318,10 +318,10 @@ int main(int argc, char *argv[]) {
                 if (pollfd[FD_NOLOGIN_TIMER].revents) {
                         int e;
 
-                        log_info("Creating /var/run/nologin, blocking further logins...");
+                        log_info("Creating /run/nologin, blocking further logins...");
 
-                        if ((e = write_one_line_file("/var/run/nologin", "System is going down.")) < 0)
-                                log_error("Failed to create /var/run/nologin: %s", strerror(-e));
+                        if ((e = write_one_line_file("/run/nologin", "System is going down.")) < 0)
+                                log_error("Failed to create /run/nologin: %s", strerror(-e));
                         else
                                 unlink_nologin = true;
 
@@ -346,7 +346,7 @@ finish:
                         close_nointr_nofail(pollfd[i].fd);
 
         if (unlink_nologin)
-                unlink("/var/run/nologin");
+                unlink("/run/nologin");
 
         if (exec_shutdown) {
                 char sw[3];
index 70a9ebd83111e609252c8c410a4cd4535d31f006..b21df95a7350292ba5d6b3614eb65778bc9b3f1e 100644 (file)
@@ -47,9 +47,8 @@
 
 /* This reads all files listed in /etc/tmpfiles.d/?*.conf and creates
  * them in the file system. This is intended to be used to create
- * properly owned directories beneath /tmp, /var/tmp, /run and
- * /var/lock which are volatile and hence need to be recreated on
- * bootup. */
+ * properly owned directories beneath /tmp, /var/tmp, /run, which are
+ * volatile and hence need to be recreated on bootup. */
 
 enum {
         /* These ones take file names */
index d3faad0cd60d3ce46daad9a90e6e4b59262ba12e..4518d953ed7bebc80b3f110d2981ee3961391278 100644 (file)
@@ -42,8 +42,8 @@ int main(int argc, char*argv[]) {
         if (streq(argv[1], "start")) {
                 int q = 0, r = 0;
 
-                if (unlink("/var/run/nologin") < 0 && errno != ENOENT) {
-                        log_error("Failed to remove /var/run/nologin file: %m");
+                if (unlink("/run/nologin") < 0 && errno != ENOENT) {
+                        log_error("Failed to remove /run/nologin file: %m");
                         r = -errno;
                 }
 
@@ -59,8 +59,8 @@ int main(int argc, char*argv[]) {
                 int r, q;
                 char *cgroup_user_tree = NULL;
 
-                if ((r = write_one_line_file("/var/run/nologin", "System is going down.")) < 0)
-                        log_error("Failed to create /var/run/nologin: %s", strerror(-r));
+                if ((r = write_one_line_file("/run/nologin", "System is going down.")) < 0)
+                        log_error("Failed to create /run/nologin: %s", strerror(-r));
 
                 if ((q = cg_get_user_path(&cgroup_user_tree)) < 0) {
                         log_error("Failed to determine use path: %s", strerror(-q));