Debian Codegraph @

README.md

raw symbols SCIP
1 # standalone socket-activate (sasa) #
2
3 This project provides a standalone C implementation of systemd-style
4 socket-activation for use on Unix-based systems that don't have systemd
5 installed.
6
7 It uses the simple [`sd_listen_fds` environment variable and file
8 descriptor
9 convention](https://manpages.debian.org/unstable/systemd/sd_listen_fds.3.en.html)
10 introduced by
11 [systemd](https://www.freedesktop.org/wiki/Software/systemd/), without
12 using any code or dependencies from systemd.
13
14 See the [socket-activate manpage](./socket-activate.md) for more information.
15
16
17 ## Code and Issues ##
18
19 The source code is available at
20 https://git.devuan.org/leepen/standalone-socket-activate where bug reports can
21 be made and pull requests are welcome.
22
23 ## Dependencies ##
24
25 - make
26 - C compiler [tested with gcc]
27 - pandoc [for manpage only]
28 - diff, python3, netcat (openbsd) [for [tests](./tests) only]
29
30 ## Similar work ##
31
32 [systemd](https://www.freedesktop.org/wiki/Software/systemd/) offers
33 `systemd-socket-activate`, but that code is only for testing and has a few
34 drawbacks that hopefully this project avoids:
35
36 - The systemd project itself doesn't build on non-Linux systems.
37
38 - `systemd-socket-activate` doesn't allow for multiple sockets of
39 different types.
40
41 ## Authors ##
42
43 This implementation of `socket-activate` is written by Mark Hindley
44 <[email protected]> based on an initial C implementation by Peter Pentchev
45 <[email protected]>. The [original Python 3
46 implementation](https://gitlab.com/dkg/socket-activate) was written by Daniel
47 Kahn Gillmor <[email protected]>.
48
49 It is licensed under the [GPL version 3 or
50 later](https://www.gnu.org/licenses/gpl.html)
51
52 ## References ##
53
54 * [systemd Socket Activation, part 1](http://0pointer.de/blog/projects/socket-activation.html)
55 * [systemd Socket Activation, part 2](http://0pointer.de/blog/projects/socket-activation2.html)
56 * [Debian bug report asking for non-systemd socket activation](https://bugs.debian.org/922082)
57 * [systemd-socket-activate documentation](https://manpages.debian.org/unstable/systemd/systemd-socket-activate.1.en.html)
58 * [Python 3 implementation](https://gitlab.com/dkg/socket-activate)