Skip to content

Instantly share code, notes, and snippets.

@zafergurel
Last active March 18, 2020 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zafergurel/024bbfe4aae709b66202177e52c1426c to your computer and use it in GitHub Desktop.
Save zafergurel/024bbfe4aae709b66202177e52c1426c to your computer and use it in GitHub Desktop.
cron
crontab -l > /tmp/mycron
tee -a /tmp/mycron <<EOF
# restart wowza
0 1 * * * /bin/systemctl restart WowzaStreamingEngine
# free cache
*/1 * * * * /opt/advancity/bin/free_mem_cache.sh
# rclone
@reboot /opt/advancity/bin/stream_mover_perculusplus.sh
@reboot sleep 10 && /usr/local/bin/docker-compose -f /perculusdata/perculus-setup/perculus/docker-compose.yml up -d
@reboot service snmpd start
EOF
crontab /tmp/mycron
rm /tmp/mycron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment