Start and Stop service Motion from crontab

Eric P
2017-10-13 00:07

 

Create a cron job 

cd /etc/init.d && motion start

Then create another one to kill it at determinated time.

 

killall motion &&

chmod 777 -R /var/Vol1/Motion/

chmod 777 -R /var/Vol1/Motion/;

 

Tags: crontab, monitoring, motion, video
Average rating: 0 (0 Votes)

You cannot comment on this entry