Robert Edmonds wrote:
in general i would recommend using
/var/run/${DAEMON}/${DAEMON}.pid for
pidfiles, creating /var/run/${DAEMON}/ if necessary, owned by the
daemon's uid/gid. then you can use the same directory for lock files,
control sockets, etc.
another tangent: speaking of control sockets, i see that knot uses port
5553 (TCP) for its control socket, which according to IANA is
registered to:
sgi-eventmond 5553 tcp SGI Eventmond Port
BIND8/BIND9 (ndc/rndc) use port 953 for its control socket, which is in
the "well-known" range but appears not to be registered, while unbound
uses port 8953, which is registered:
ub-dns-control 8953 tcp unbound dns nameserver
this is one of the reasons i like AF_UNIX sockets for control sockets :)
--
Robert Edmonds
edmonds(a)debian.org