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.
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.