1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 13_doc_telinit.dpatch by Petter Reinholdtsen
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Document -e and -t option in telinit. Fixes bug #272657.
8
diff -urNad --exclude=CVS --exclude=.svn ./man/init.8 /tmp/dpep-work.onJlGf/trunk/man/init.8
9
--- ./man/init.8 2006-01-04 11:37:18.000000000 +0100
10
+++ /tmp/dpep-work.onJlGf/trunk/man/init.8 2006-01-04 11:37:34.000000000 +0100
16
+[ \fB\-z\fP \fIxxx\fP ]
21
+[ \fB\-t\fP \fISECONDS\fP ]
22
.RB [ " 0123456sSQqabcUu " ]
25
+[ \fB\-e\fP \fIVAR\fP[\fB=\fP\fIVAL\fP] ]
30
tell \fBinit\fP to switch to single user mode.
31
.IP "\fBU\fP or \fBu\fP"
32
tell \fBinit\fP to re-execute itself (preserving the state). No re-examining of
33
-\fB/etc/inittab\fP file happens. Run level should be one of \fBSs12345\fP,
34
+\fB/etc/inittab\fP file happens. Run level should be one of
36
otherwise request would be silently ignored.
38
-\fBtelinit\fP can also tell \fBinit\fP how long it should wait
39
+\fBtelinit\fP can tell \fBinit\fP how long it should wait
40
between sending processes the SIGTERM and SIGKILL signals. The default
41
-is 5 seconds, but this can be changed with the \fB-t sec\fP option.
42
+is 5 seconds, but this can be changed with the \fB-t\fP option.
44
+\fBtelinit -e\fP tells \fBinit\fP to change the environment
45
+for processes it spawns.
46
+The argument of \fB-e\fP is either of the form \fIVAR\fP=\fIVAL\fP
47
+which sets variable \fIVAR\fP to value \fIVAL\fP,
48
+or of the form \fIVAR\fP
49
+(without an equality sign)
50
+which unsets variable \fIVAR\fP.
52
\fBtelinit\fP can be invoked only by users with appropriate
55
command line manually.
59
-The argument to -z is ignored. You can use this to expand the command
61
+The argument to \fB-z\fP is ignored. You can use this to expand the command
62
line a bit, so that it takes some more space on the stack. \fBInit\fP
63
can then manipulate the command line so that \fBps\fP(1) shows
65
diff -urNad --exclude=CVS --exclude=.svn ./src/init.c /tmp/dpep-work.onJlGf/trunk/src/init.c
66
--- ./src/init.c 2005-12-02 17:22:57.000000000 +0100
67
+++ /tmp/dpep-work.onJlGf/trunk/src/init.c 2006-01-04 11:37:19.000000000 +0100
72
- fprintf(stderr, "Usage: %s 0123456SsQqAaBbCcUu\n", s);
73
+ fprintf(stderr, "Usage: %s {-e VAR[=VAL] | [-t SECONDS] {0|1|2|3|4|5|6|S|s|Q|q|A|a|B|b|C|c|U|u}}\n", s);