Comment 1 for bug 420455

Revision history for this message
pred (predecessor) wrote : Re: harcoded pid-file owner in init.d

My suggestion:

add to init.d:

UID=`grep 'server_uid' /etc/wzdftpd/wzd.cfg | sed -e 's/server_uid[ \t]\+=[ \t]\+//'`
...

  if [ -n "$UID" ]; then
    chown $UID /var/run/wzdftpd
  fi

A pretty similar thing could be done with config-option pid_file.