aboutsummaryrefslogtreecommitdiff
path: root/README
blob: 5f7e6717fc0fa6755dbc704e9427673f7feac652 (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
sinit - suckless init - nshp's fork
===================================

sinit is a simple init.  It was initially based on
Rich Felker's minimal init[1].

What's different?
----------------
My fork of sinit adds:

* Service forking defined in config.h with very dumb dependency tracking
* A single user session defined in config.h
* Base system mounting defined in config.h
* Static reboot and poweroff binaries which just send the signals listed below

When I build this with dietlibc, the resulting binary is currently 5272 bytes.

Why?
----

I wanted a fast, completely static init for my laptop.

How?
----

There are 3 signals that sinit will act on.

      SIGUSR1: powers off the machine.
      SIGINT:  reboots the machine (or alternatively via ctrl-alt-del).
      SIGCHLD: reap children