I have setup a service on my Ubuntu 10.04.4 LTS server, which works when started and stopped manually using
sudo service <service> start etc.
However I would like to have the service (dropbox btw.) only running for a few hours each day, as the service uses a lot of memory.
I have added the following to my cron using
crontab -e, but it doesn't work as expected:
1 5 * * * /etc/init.d/dropbox start 1 6 * * * /etc/init.d/dropbox stop
This returns the following message
start-stop-daemon: not found. Am I doing it wrong and if so how do you start / stop a service at a specific time?