package havp
retitle 418414 /var/run/havp is owned by root
thanks
Am Montag, den 09.04.2007, 18:52 +0200 schrieb Björn Heide:
> invoke-rc.d: initscript havp, action "stop" failed.
> #
I investigated this a bit and found out that havp fails to stop because
havp failed to write its pid file because /var/run/havp is owned by
root:
$ ls -ld /var/run/havp
drwxr-xr-x 2 root root 4096 2007-04-04 20:57 /var/run/havp
After I looked in havp's postinst file it comes clear what happened:
relevant part of havp.postinst:
if ! getent passwd havp >/dev/null; then
adduser --quiet --system --no-create-home \
--home /var/run/havp --ingroup havp havp || true
chown havp:havp /var/run/havp
chown havp:havp /var/log/havp
chown havp:havp /var/lib/havp
chown havp:havp /var/spool/havp
fi
Because there was already an user havp on my machine (left behind from
an old havp install) the chown commands never got executed.
greetings
Björn