1
diff --git a/man/shutdown.8 b/man/shutdown.8
2
index 919a77e..9ce56e4 100644
5
@@ -119,7 +119,7 @@ Second, it can be in the format \fB+\fP\fIm\fP, in which \fIm\fP is the
6
number of minutes to wait. The word \fBnow\fP is an alias for \fB+0\fP.
8
If shutdown is called with a delay, it will create the advisory file
11
which causes programs such as \fIlogin(1)\fP to not allow new user
12
logins. This file is created five minutes before the shutdown sequence
13
starts. Shutdown removes this file if it is stopped before it
14
diff --git a/src/paths.h b/src/paths.h
15
index 232a944..74c867e 100644
19
#define SDALLOW "/etc/shutdown.allow" /* Users allowed to shutdown */
20
#define INITTAB "/etc/inittab" /* Location of inittab */
21
#define INIT "/sbin/init" /* Location of init itself. */
22
-#define NOLOGIN "/etc/nologin" /* Stop user logging in. */
23
+#define NOLOGIN "/run/nologin" /* Stop user logging in. */
24
#define FASTBOOT "/fastboot" /* Enable fast boot. */
25
#define FORCEFSCK "/forcefsck" /* Force fsck on boot */
26
#define SDPID "/var/run/shutdown.pid" /* PID of shutdown program */
27
diff --git a/src/shutdown.c b/src/shutdown.c
28
index 7e997da..8c3345a 100644
31
@@ -234,7 +234,7 @@ void warn(int mins)
35
- * Create the /etc/nologin file.
36
+ * Create the /run/nologin file.
38
void donologin(int min)