Forum

how to schedule restart something

owen 2017-09-07 10:05:23 UTC in WMSPanel functionality

hi all,
I was some misstake with rtmp republishing, after few day the rtmp stream didn't push to origin server. I must restart rtmp republishing.
how to schedule restart it ?

owen 2017-12-11 02:26:21 UTC 

Dear support,
Plz help me this case.
how to schedule restart rtmp publishing and udp setting ?

Denis Slobodskoy 2017-12-11 02:53:11 UTC 

You can use WMSPanel API for restarting: https://wmspanel.com/api_info#sb_nimble_rtmprepublish__restart
So your scheduled task should be something like
curl 'https://api.wmspanel.com/v1/server/[server_id]/rtmp/republish/[rule_id]/restart?client_id=[client_id]&api_key=[api_key]'
server_id and rule_id are present in URL for editing rule in WMSPanel (wrench button).
If you didn't use API before, please read how to enable it: https://wmspanel.com/api_info#sb_wms_enable

owen 2017-12-11 03:35:30 UTC 

Dear support
The [rule_id] is a id of one stream. But i need restart all stream in the same time. Which the option i can use in this case ?

Denis Slobodskoy 2017-12-11 03:45:28 UTC 

Sorry, there is no API for restart all, you have to restart each stream separately. You may write a script that will get streams list and send restart command for each.

Post a reply


Post a new question

Categories:

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.