How do I install Pi-hole on a Synology NAS?

I get it to work after reboot. I dont know if its right way but:

I edit: /usr/local/etc/rc.d/S99pihole.sh restart
Add two lines for start and stop pihole-FTL like this:

#!/bin/sh

. /etc.defaults/rc.subr

case $1 in
        start)
            /var/packages/debian-chroot/scripts/start-stop-status start
                chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron start
                chroot /volume1/@appstore/debian-chroot/var/chroottarget service dnsmasq start
                chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd start
                **chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL start**
        ;;
        stop)
                chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron stop
                chroot /volume1/@appstore/debian-chroot/var/chroottarget service dnsmasq stop
                chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd stop
                **chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL stop**
                /var/packages/debian-chroot/scripts/start-stop-status stop
        ;;
        restart)
                $0 stop
                sleep 1
                $0 start
        ;;
        *)
                echo "Usage: $0 start|stop|restart"
        ;;
esac