I would also use cron to "stop" or "kill" that service or script at a specified time.
First create your cron job to run your job or script.
(you can easily run another cron that will kill a job that has a name
sudo pkill wget )
Secondly, you want to see running crontab tasks, in a useful and readable format, in the output of:
ps -o pid,sess,cmd afx | egrep "( |/)cron( -f)?$"
They will appear in the first lines, something like this:
1108 1108 cron
4288 1108 \_ CRON
4289 4289 \_ /bin/sh -c /path/to/my/crontab/script1.sh
4290 4289 \_ /bin/bash /path/to/my/crontab/script1.sh
4295 4289 \_ /usr/bin/wget LINK
First column is PID, second is Session ID and third is the command started by cron. You can kill all the processes related to a specific cron task using the Session ID, so in the example above you should kill Session ID 4289:
pkill -s 4289
You need to put the pkill in a script and run this as a cron