]> git.wh0rd.org - sysvinit.git/blame - contrib/start-stop-daemon.README
Include -Wunreachable-code when building.
[sysvinit.git] / contrib / start-stop-daemon.README
CommitLineData
a74aeac6
PR
1Start-stop-daemon is the program that is used by the DEBIAN style init
2scripts to start and stop services. This program is part of the "dpkg"
3package by Ian Jackson. However there is also a seperate C version (the
4original is in perl) available written by Marek Michalkiewicz. I'm including
5it for your convinience.
6
7Note that the latest debian dpkg packages (4.0.18 and later) contain
8a much improved update-rc.d. This code is almost a year old.
9
10The original announcement follows:
11
12
13From: Marek Michalkiewicz <marekm@i17linuxb.ists.pwr.wroc.pl>
14Message-Id: <199606060324.FAA19493@i17linuxb.ists.pwr.wroc.pl>
15Subject: Fast start-stop-daemon in C
16To: debian-devel@lists.debian.org
17Date: Thu, 6 Jun 1996 05:24:18 +0200 (MET DST)
18
19Some time ago I wrote a faster C replacement for the start-stop-daemon
20perl script. I use it for some time now (the most recent changes were
21just a nicer help screen; the code is quite stable).
22
23This makes the system boot faster (especially on low end machines),
24and important system startup scripts no longer depend on another big
25package (perl). Maybe in the future we can get to the point where
26a minimal system will work without perl installed at all (packages
27which need it in {pre,post}{inst,rm} scripts would depend on perl).
28
29The only problem known so far to me is that I have to reinstall this
30program after every dpkg upgrade which overwrites it with that nice
31slooow perl script :-).
32
33Just compile this program and drop the binary in /usr/sbin instead
34of the original /usr/sbin/start-stop-daemon perl script (make a copy
35of it first, just in case). See below for source code. I placed it
36in the public domain, but if it has to be GPL-ed to be included in
37dpkg, just tell me. Including it in dpkg would close Bug#1670.
38
39I am posting it here so that it can be tested by more people than
40just me. Bugs are unlikely though.
41
42Have fun,
43
44Marek
45