Coturn Restart service

Hi folks,

I’m trying to decide what the best solution is to restart Coturn / Turn Server when the SSL renews, I use the API which works great. I normally used —hook (service) I’m wondering if the -hook method will work with coturn ?

Regards

Jack.

It is hard to tell for certain; As you haven't provided enough information about your system and how you normally restart/reload the coturn server.

So...
How do you normally restart/reload the coturn server?
What operating system, and version, does it use?

4 Likes

Hi sorry,

I normally use systemctl restart coturn, systemctl start coturn or systemctl stop coturn.

It is Ubuntu Server 20.04. Certbot is the latest version.

Regards

Jack.

1 Like

A "--deploy-hook" should work nicely with that.

6 Likes

If this helps: I have systemctl try-reload-or-restart … with a bunch of stuff including the turnserver, as my deploy hook.

try-reload-or-restart PATTERN

Reload one or more units if they support it. If not, stop and then start them instead. This does nothing if the units are not running.

systemctl man→try-reload-or-restart

4 Likes

That’s great thank you, I was thinking about doing that method as I use that method for nginx, postfix and dovecot.

I will report back, if any problems.

Regards

Jack.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.