Re: non-root daemon and /var/run/daemon.pid
Roderick Schertler <roderick@argon.org> writes:
> In the mon package I want to run the daemon as user daemon since it
> doesn't need to be root, but this prevents it from creating its pid
> file in /var/run. My current solution is to create the pid file in the
> /etc/init.d script and chown it to user daemon, but this is a little
> nasty in that the program can't unlink it when it exits. I've worked
> around that by having the program truncate the file if it can't unlink
> it, but that's even nastier.
This may not be ideal, but you could put
/var/run/mon/
in the package, owned by daemon, then the program can do whatever it
likes inside that directory.
--
Rob Browning <rlb@cs.utexas.edu>
PGP fingerprint = E8 0E 0D 04 F5 21 A0 94 53 2B 97 F5 D6 4E 39 30
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: