Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- php script:
- #!/usr/bin/php
- <?
- require "RtmpClient.class.php";
- exec('echo "hello" >> /tmp/kfir');
- $client = new RtmpClient();
- try {
- $client->connect("localhost","live");
- } catch (Exception $e){
- exec('echo "restarted" >> /tmp/kfir');
- echo exec('/etc/init.d/red5 stop');
- echo 'waiting 5 seconds';
- sleep(5);
- echo exec('/etc/init.d/red5 start');
- }
- $client->close();
- ?>
- ls -lsa /mnt/www/entwine/rtmp-check/rtmpcheck.php
- 4 -rwxr-xr-x 1 root root 357 Jun 4 15:23 /mnt/www/entwine/rtmp-check/rtmpcheck.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement