I need to turn FTP services off/on on a schedule in OS X 10.2 server

I assume this could be done with an Applescript and iCal or cron, but if not any help would be appreciated.

Thanks.