1 |
I have created bugs 28938, 28940, 28941, 28943 and 28945 to add daemontools support |
2 |
to the init scripts for samba, xinetd, fcron, cupsd and syslog-ng. Feel free to try |
3 |
it and see what you think. |
4 |
|
5 |
I discuss my approach in bug 28294. To summarise: |
6 |
|
7 |
1. daemontools is not required but can optionally be used if available. |
8 |
|
9 |
2. The daemontools service directory for each daemon is located in /var/daemontools |
10 |
|
11 |
3. This method has flexibility in that a user can choose to start each daemon in |
12 |
one of 3 different ways. The existing method (usually start-stop-daemon) in an init |
13 |
script, supervise from an init script, or svscan by creating a link to /var/daemontools/$name |
14 |
at /service/$name. Running supervise from the init script has the advantages of both |
15 |
init dependancy support and daemon monitoring. |
16 |
|
17 |
4. No daemontools USE flag is required using this method. |
18 |
|
19 |
Mark |
20 |
|
21 |
|
22 |
|
23 |
Hallgrimur H. Gunnarsson wrote: |
24 |
|
25 |
>On 11.09.2003 Frederick Grim <fgrim@××××××××××××.org> wrote: |
26 |
> |
27 |
> |
28 |
>>#!/bin/sh |
29 |
>> |
30 |
>>exec /usr/bin/tcpserver 0 111 /sbin/portmap -d 2>&1 |
31 |
>> |
32 |
>>with it's associated log/run script |
33 |
>> |
34 |
>>#!/bin/sh |
35 |
>>exec /usr/bin/setuidgid nobody /usr/bin/multilog t s2500000 |
36 |
>>/var/log/supervise/portmap |
37 |
>> |
38 |
>>which bypasses these dependancies. I have found, using daemontools |
39 |
>>that the system logger is only useful for a few broken daemons that |
40 |
>>can't be configured to log to stdout. |
41 |
>> |
42 |
>>So this is sort of an important point. If runscripts are included |
43 |
>>will the logging by default be to the stdout or to syslog? |
44 |
>> |
45 |
>> |
46 |
> |
47 |
>I think it should definitely be stdout by default, even if it were |
48 |
>just to force that support into all packages who wish to provide |
49 |
>daemontools support, so that you dont install a program that claims |
50 |
>to support 'daemontools' but doesnt allow to use another logger than |
51 |
>syslog. |
52 |
> |
53 |
>Perhaps we should come up with some method in which 'run' files |
54 |
>are installed? |
55 |
> |
56 |
>Should we have a /etc/supervise/packagename or |
57 |
>/etc/daemontools/packagename, or something like that? |
58 |
> |
59 |
>- hhg |
60 |
> |
61 |
>-- |
62 |
>gentoo-dev@g.o mailing list |
63 |
> |
64 |
> |
65 |
> |
66 |
|
67 |
|
68 |
-- |
69 |
gentoo-dev@g.o mailing list |