if grep -qe '^[[:blank:]]*CharsetLocal' /etc/proftpd.conf; then
echo "WARNING: iconv patch is disabled, do not use CharsetLocal/CharsetRemote" >&2
echo "WARNING: see doc/modules/mod_lang.html for details" >&2
echo "WARNING: autocommenting corresponding Options, please check" >&2
subst 's/^\([[:blank:]]*CharsetLocal .*\)/# \1/' /etc/proftpd.conf
subst 's/^\([[:blank:]]*CharsetRemote .*\)/# \1/' /etc/proftpd.conf
fi
if [ -e "/etc/control.d/facilities/proftpd" ]; then
if [ $1 -ge 2 ]; then
/usr/sbin/control-restore proftpd
else
for facility in proftpd; do
/usr/sbin/control "$facility" standalone
done
fi
fi
/usr/sbin/post_service proftpd