]> Pileus Git - mkinit/blob - README
formatting
[mkinit] / README
1 mkinit is a tiny init daemon that relies on mk for determining the order init
2 services need to be executed. 
3
4 WARNING: This code is not very well tested, you should probably run `mkinit -t'
5 a few times as root before actually trying using init=/sbin/mkinit.
6
7
8 Init scripts
9 ------------
10 Init scripts take the form of mk rules contained in /etc/init.mk. Services are
11 started by calling  the `start-<service>' rule and stopped by calling
12 `stop-service'. Services should use `:Pservice -[ud]:' to determine whether the
13 script needs to be invoked.
14
15 For simple services consisting of a single start and stop command which no
16 dependencies other than boot, the default start-stop rules can be used by
17 setting `<service>_start_cmd' and `<service>_stop_cmd'.
18
19 Dependencies are handled by adding `start-<dependency>' to the rules list of
20 dependencies. When stopping a service, `stop-<service>' should be added to the
21 list of dependencies for the dependency.
22
23
24 Files
25 -----
26 COPYING - Licencing terms (MIT)
27 README  - This file
28 mkfile  - For [un]installing mkinit
29 init.mk - Example database of init scripts
30
31 bin/mkinit  - The actual init program it runs main loop and calls mk on
32               init.mk whenever services need to be started and stopped.
33 bin/respawn - Used to respawn gettys and such
34 bin/service - Set or query the state of a service
35
36
37 # tw=80