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