aboutsummaryrefslogtreecommitdiff
path: root/man/inittab.8
blob: bcede1c22a950dcf8c0cee7d4a4d9d90d61395ca (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
.TH ninit\-inittab 8 "Dec 28, 2009"
.SH NAME
ninit\-inittab \- convert /etc/inittab to service directory
.SH SYNOPSIS
.B ninit\-inittab
.I inittab_file
.I home_directory
.I output_script

.SH DESCRIPTION
.B ninit\-inittab
creates a script using 
.I /etc/inittab 
file.
This script can be used to create a service directory easy.

.SH OPTIONS
.TP
.I inittab_file
input source file 
.TP
.I home_directory
home directory for 
.B ninit
.TP
.I output_script
name of the output script

.SH USAGE
.B Case A.
If you don't have services in
.I /etc/ninit
you can start:

.PP
.RS
cd /tmp
.br
ninit\-inittab
/etc/inittab /etc/ninit services.sh
.br
less services.sh
.br
/tmp/services.sh
.RE
.PP

Then check what the script has done in 
.I /etc/ninit

.B Case B.
If you already have a 
.I /etc/ninit
directory with services,
and don't want to make any changes there you can type:

.PP
.RS
cd /tmp; cp /etc/inittab /tmp; vi inittab
.br
ninit\-inittab
/tmp/inittab /tmp/srv services.sh
.br
less services.sh
.br
/tmp/services.sh
.RE
.PP

Then check what the script has done in 
.I /tmp/srv.
If you find something
interesting there you can copy it to 
.I /etc/ninit

.SH AUTHOR
.B ninit\-inittab
was written by Nikola Vladov.

The aim was to easily convert a host running
SysVinit to ninit.  In my opinion creating services is very easy.
Maybe you have to look 
in some already prepared service directory first.

Ask google for "ninit archlinux" and you will find
an excellent git repository with services for
.I /etc/ninit 


.SH FILES
.I /etc/inittab
.br
.I /etc/ninit/

.SH "SEE ALSO"
ninit(8), ninit\-runlevel(8), ninit\-sysvinit(8), pututmpid(8)
.br
init(8), inittab(5), runlevel(8)