~ubuntu-branches/debian/experimental/sysvinit/experimental

« back to all changes in this revision

Viewing changes to debian/patches/11_run_nologin.patch

  • Committer: Package Import Robot
  • Author(s): Roger Leigh, Roger Leigh, Michael Stapelberg
  • Date: 2012-07-28 20:09:11 UTC
  • mfrom: (9.1.47 sid)
  • Revision ID: package-import@ubuntu.com-20120728200911-1xa3ydm5a46lyrjd
Tags: 2.88dsf-41+jessie1
[ Roger Leigh ]
* initscripts:
  - Move /etc/nologin and /var/lib/initscripts/nologin to
    /run/nologin.  This means that nologin is always created on
    a writable, available filesystem.  Closes: #660862.
  - Remove code to generate /etc/mtab.  /etc/mtab is now always a
    symbolic link to /proc/mounts.  Closes: #630723.
  - Remove incorrect use of break in case blocks in vars.sh.  Thanks
    to Raphaël Hertzog for this patch.  Closes: #701031.
  - /etc/network/if-up.d/mountnfs: Skip lo if already configured.
    Closes: #705052.  Thanks to Timo Weingärtner.
* sysvinit:
  - Document length limit of 127 in inittab process field.  Thanks
    to Johannes Truschnigg.  Closes: #693960.
* sysv-rc:
  - Fix typo in invoke-rc.d(8).  Closes: #683804.  Thanks to
    Martin-Éric Racine.

[ Michael Stapelberg ]
* systemd: update check to look for /run/systemd/system.
  Closes: #703571
* sysv-rc:
  - Add systemd support to update-rc.d(8) and invoke-rc.d(8).
    Closes: #683084.
  - service(8): use systemctl on machines that run systemd.
    Closes: #704923

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff --git a/man/shutdown.8 b/man/shutdown.8
 
2
index 919a77e..9ce56e4 100644
 
3
--- a/man/shutdown.8
 
4
+++ b/man/shutdown.8
 
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.
 
7
 .PP
 
8
 If shutdown is called with a delay, it will create the advisory file
 
9
-.I /etc/nologin
 
10
+.I /run/nologin
 
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
 
16
--- a/src/paths.h
 
17
+++ b/src/paths.h
 
18
@@ -28,7 +28,7 @@
 
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
 
29
--- a/src/shutdown.c
 
30
+++ b/src/shutdown.c
 
31
@@ -234,7 +234,7 @@ void warn(int mins)
 
32
 }
 
33
 
 
34
 /*
 
35
- *     Create the /etc/nologin file.
 
36
+ *     Create the /run/nologin file.
 
37
  */
 
38
 void donologin(int min)
 
39
 {