#!/bin/bash
# Legacy SysV wrapper. proftpd is managed by systemd; this exists so callers
# that hardcode /etc/init.d/proftpd keep working.
case "$1" in
    start|stop|restart|reload|status)
        exec systemctl "$1" proftpd.service
        ;;
    condrestart|try-restart)
        exec systemctl try-restart proftpd.service
        ;;
    *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|try-restart|status}"
        exit 2
        ;;
esac
