Gentoo Archives: gentoo-dev

From: mike <vapier@×××××××.com>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] questions about /var/run and pids
Date: Thu, 05 Sep 2002 10:29:20
Message-Id: 025201c254f1$0f210930$55f1d782@vapier
In Reply to: [gentoo-dev] questions about /var/run and pids by Dominik Westner
1 if you look at existing scripts (like /etc/init.d/samba) you see that
2 they use 'start-stop-daemon' ... for more information on how to
3 use it, run `start-stop-daemon --help` ...
4 -mike
5
6 ----- Original Message -----
7 From: "Dominik Westner" <lists@×××××××××××.com>
8 To: <gentoo-dev@g.o>
9 Sent: Thursday, September 05, 2002 02:52
10 Subject: [gentoo-dev] questions about /var/run and pids
11
12
13 > Hi all,
14 >
15 > when creating some ebuilds I quite often run into the following problem:
16 >
17 > I have a daemon program which should run under a specific user.
18 > Additionally I think a good daemon should always write their pid in
19 > /var/run.
20 >
21 > Problem: /var/run is only writable by root. Therefore only daemons
22 > which run as root can put their pid into /var/run.
23 >
24 > I think a better approach would be to have /var/run owned and being
25 > writeable by group 'daemon'.
26 > Every daemon program could then belong to the daemon group and write
27 > its pid into /var/run.
28 >
29 > Or do I simply miss something?
30 >
31 > Dominik
32 >
33 > _______________________________________________
34 > gentoo-dev mailing list
35 > gentoo-dev@g.o
36 > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
37 >

Replies

Subject Author
Re: [gentoo-dev] questions about /var/run and pids Dominik Westner <lists@×××××××××××.com>