Starting Services on Synology DSM 5

Since updating my Synology DS411+II to DSM 5, pyTivo doesn’t run when the NAS starts. (This may have been broken in an earlier DSM release, because I was quite a few versions out of date when I upgraded.) The software is still on the NAS as I installed it. If I go to /usr/local/etc/rc.d and run

pyTivo.sh start

it runs fine, so the software is OK, but the startup script isn’t getting run by init. I found a post in the Synlogoy Forums about the locations of start-up scripts. The solution is to put the pyTivo service script in /usr/syno/etc/rc.d. With the software installed as above, I did this on the NAS:

mv /usr/local/etc/rc.d/pyTivo.sh /usr/local/pyTivo/.
ln -s /usr/local/pyTivo/pyTivo.sh /usr/syno/etc/rc.d/S99pyTivo.sh

Then I rebooted the NAS and confirmed pyTivo was running at http://<NAS>:9032/