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 |