1 |
It seems that you should also be able to create a subdirectory in /var/run for your program from the ebuild, chown it, and then let the daemon write to the directory directly if you really need to. |
2 |
|
3 |
Blake |
4 |
On Thu, 5 Sep 2002 08:52:28 +0200 |
5 |
Dominik Westner <lists@×××××××××××.com> wrote: |
6 |
|
7 |
> Hi all, |
8 |
> |
9 |
> when creating some ebuilds I quite often run into the following problem: |
10 |
> |
11 |
> I have a daemon program which should run under a specific user. |
12 |
> Additionally I think a good daemon should always write their pid in |
13 |
> /var/run. |
14 |
> |
15 |
> Problem: /var/run is only writable by root. Therefore only daemons |
16 |
> which run as root can put their pid into /var/run. |
17 |
> |
18 |
> I think a better approach would be to have /var/run owned and being |
19 |
> writeable by group 'daemon'. |
20 |
> Every daemon program could then belong to the daemon group and write |
21 |
> its pid into /var/run. |
22 |
> |
23 |
> Or do I simply miss something? |
24 |
> |
25 |
> Dominik |
26 |
> |
27 |
> _______________________________________________ |
28 |
> gentoo-dev mailing list |
29 |
> gentoo-dev@g.o |
30 |
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev |
31 |
|
32 |
|
33 |
-- |
34 |
Blake Watters |
35 |
Office: (919) 962-5646 |
36 |
Cell: (919) 260-3783 |
37 |
AIM: initgraf |
38 |
|
39 |
-----BEGIN PGP PUBLIC KEY BLOCK----- |
40 |
Version: GnuPG v1.0.7 (GNU/Linux) |
41 |
|
42 |
mQGiBD0siXQRBADkwqy31wquBdOptwwaXSCUxDhk2fOw5iLb0SkW8J4GOAZSqaOb |
43 |
VE9wFIThHH39GMD6n7yu+NZ2sxSvHCQQYHu1ggPmtV+5xAEuzEQB+Zy8i3wqRUed |
44 |
rPZWAsMkV89j8vcJ6Mx6p/pqQHYMiVlnDhUwA4XutxypeLF9rlVtTUCTrwCgtDXV |
45 |
MmH050etIWonhn+UYWhgWY8EANshBhzNrwCG7irDf8gSYPsMdW0ooGq218jTdKUl |
46 |
Ny7mnVZ2OhuQjte/aRrYIxP/4G7BEoSeI6p3t4L5LFDKelUB5Tn4JTD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