Wowza Community

Wowza Server need to restart automaticlly every 24 hr

Hi Mates,
I need to restart my wowza server in every 24hr with cronjob , I tried lot of scripts but did not work for me.
Any one can help me?

In windows, this is trivially easy.
One stop.bat ends the action and the other start.bat starts the action. All run in Task Scheduler.

I’m using linux server edition.

  1. Create a bash script it’s the commands stop , pause android then start wowza. Like :
sudo systemctl stop WowzaStreamingEngine
sleep 3
sudo systemctl start WowzaStreamingEngine

It is in wowza documentation.

Save it as In home directory or so.

  1. Make sure it has proper permissions to be able to start / stop wowza.

  2. To edit or create your own crontab file, type the following command at the UNIX / Linux shell prompt:
    $ crontab -e. Find more information on crontab via google.

  3. Register it for auto run via Cron using the following expression

0 8 * * *

Ie :

0 8 * * * /home/path/to/

This implies run the cron Job every day at 8 am. You can adjust it according to your use case.


Thank you for your great Job

1 Like