Last active
March 18, 2020 13:59
-
-
Save zafergurel/024bbfe4aae709b66202177e52c1426c to your computer and use it in GitHub Desktop.
cron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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