Gentoo Archives: gentoo-dev

From: Dominik Westner <lists@×××××××××××.com>
To: gentoo-dev@g.o
Subject: [gentoo-dev] questions about /var/run and pids
Date: Thu, 05 Sep 2002 01:52:36
Message-Id: 0B0DF1F8-C09C-11D6-9EE9-000393823B30@logicunited.com
1 Hi all,
2
3 when creating some ebuilds I quite often run into the following problem:
4
5 I have a daemon program which should run under a specific user.
6 Additionally I think a good daemon should always write their pid in
7 /var/run.
8
9 Problem: /var/run is only writable by root. Therefore only daemons
10 which run as root can put their pid into /var/run.
11
12 I think a better approach would be to have /var/run owned and being
13 writeable by group 'daemon'.
14 Every daemon program could then belong to the daemon group and write
15 its pid into /var/run.
16
17 Or do I simply miss something?
18
19 Dominik

Replies

Subject Author
Re: [gentoo-dev] questions about /var/run and pids mike <vapier@×××××××.com>
Re: [gentoo-dev] questions about /var/run and pids Blake Watters <sbw@×××××××××××.edu>