Comment 3 for bug 257667

Revision history for this message
Javier Uruen Val (juruen) wrote :

Hi Mathias,

Thanks for taking care of this.

Yes, /var/run is recreated every time the system is booted, but that's fine because /etc/init.d/slapd does the work ok:

    # Make sure the pidfile directory exists with correct permissions
    piddir=`dirname "$SLAPD_PIDFILE"`
    if [ ! -d "$piddir" ]; then
            mkdir -p "$piddir"
            [ -z "$SLAPD_USER" ] || chown -R "$SLAPD_USER" "$piddir"
            [ -z "$SLAPD_GROUP" ] || chgrp -R "$SLAPD_GROUP" "$piddir"
    fi

So as there's no umask the permissions for $piddir will be fine.

The issue comes up between the first time the package is installed and the first boot. That's what my debdiff tries to address.