]> Pileus Git - mkinit/blob - README
e6327b65ad630c2ab09921121a0a4f2749b8e5ca
[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
5 Init scripts
6 ------------
7 Init scripts take the form of mk rules contained in /etc/init.mk. Services are
8 started by calling  the `start-<service>' rule and stopped by calling
9 `stop-service'. Services should use `:Pservice -[ud]:' to determine whether the
10 script needs to be invoked.
11
12 For simple services consisting of a single start and stop command which no
13 dependencies other than boot, the default start-stop rules can be used by
14 setting `<service>_start_cmd' and `<service>_stop_cmd'.
15
16 Dependencies are handled by adding `start-<dependency>' to the rules list of
17 dependencies. When stopping a service, `stop-<service>' should be added to the
18 list of dependencies for the dependency.
19
20
21 Files
22 -----
23 COPYING - Licencing terms (MIT)
24 README  - This file
25 mkfile  - For [un]installing mkinit
26 init.mk - Example database of init scripts
27
28 bin/mkinit  - The actual init program it runs main loop and calls mk on
29               init.mk whenever services need to be started and stopped.
30 bin/respawn - Used to respawn gettys and such
31 bin/service - Set or query the state of a service
32
33
34 # tw=80