blob: 6ac909d77cc50aa89a5efc8db45bb11c704cc9e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
pututmpid(8) pututmpid(8)
NAME
pututmpid - write utmp/wtmp records and exec command
SYNOPSIS
putupmpid [-w] ut_id command [parameters]
pututmpid reboot
pututmpid halt
DESCRIPTION
pututmpid is used to write records in utmp/wtmp files for running
getty/agetty/fgetty. pututmpid writes the record and then execve()s a
command. The commands login and getty use the records written from
pututmpid.
After reboot it is possible to set pututmpid reboot in init scripts.
This will update /var/run/utmp with BOOT_TIME record. This must be
done after /var/run/utmp is writable. The usage of pututmpid halt is
similar. It sets wtmp record (in /var/log/wtmp file).
OPTIONS
usually pututmpid is symlinked as run command of a service.
-w debug mode -- write more info in /var/log/wtmp
ut_id string at most 4 bytes long. examples: tty1,tty2,
vc1,vc2,vc3... Use different names for each virtual console!
command
the real command to start
parameters
additional parameters for the command
EXAMPLE
A typical use of this command will look like this:
/etc/ninit/getty/2
/etc/ninit/getty/2/params
tty2
/sbin/fgetty
tty2
/etc/ninit/getty/2/run
-> /sbin/pututmpid
SEE ALSO
ninit(8), ninit-runlevel(8)
getty(8), {n|f|a|min}getty(8),
login(1), utmp(5), runlevel(8)
Dec 28, 2009 pututmpid(8)
|