diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-04-04 15:33:00 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-04-04 15:33:00 +0200 |
commit | db019b8dd206844dcf5fde661256dc71fcc06fef (patch) | |
tree | 7972667f2d36652ac2596d3b3038a4a1537c2ca0 /src/shutdownd.c | |
parent | d19c883d509bb0926635a1a9b30c4875dbbbbfab (diff) |
change remaining /var/run to /run
Diffstat (limited to 'src/shutdownd.c')
-rw-r--r-- | src/shutdownd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shutdownd.c b/src/shutdownd.c index 6b92ceeb1e..8f765b4517 100644 --- a/src/shutdownd.c +++ b/src/shutdownd.c @@ -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]; |