crontab -e
#1
I wrote this crontab, maybe it can be helpful for others.
Code:
# m  h  dom mon dow   command
  0  2   *   *   3    su -s /bin/sh root -c 'cd /var/www/maraschino/ && git pull'
  1  2   *   *   3    su -s /bin/sh root -c 'apache2ctl stop && apache2ctl start'
  2  2   *   *   3    su -s /bin/sh root -c 'service couchpotato stop'
  3  2   *   *   3    su -s /bin/sh root -c 'cd /opt/couchpotato/ && git pull'
  4  2   *   *   3    su -s /bin/sh root -c 'service couchpotato start'
  5  2   *   *   3    su -s /bin/sh root -c 'service sickbeard stop'
  6  2   *   *   3    su -s /bin/sh root -c 'cd /opt/sickbeard/ && git pull'
  7  2   *   *   3    su -s /bin/sh root -c 'service sickbeard stop'
  8  2   *   *   3    su -s /bin/sh root -c 'service headphones stop'
  9  2   *   *   3    su -s /bin/sh root -c 'cd /opt/headphones/ && git pull'
  10 2   *   *   3    su -s /bin/sh root -c 'service headphones start'
I tested it and I do not see any errors from using it.
Reply

Logout Mark Read Team Forum Stats Members Help
crontab -e0