Skip to content

Commit

Permalink
mediaproxy: switch from deprecated /var/run to /run
Browse files Browse the repository at this point in the history
  The FHS 3.0 [F] has deprecated /var/run in favor of /run. Current
  distributions have done so for a long time (for example in Debian
  since 6.0 “squeeze”), even though they provide a compatibility
  symlink from /var/run to /run. But software like systemd have
  started emitting warnings when using /var/run, for example for
  its PIDFile directive, which pollutes the logs.
  • Loading branch information
guillemj authored and miconda committed Oct 25, 2019
1 parent 0fd2277 commit fef7861
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/modules/mediaproxy/doc/mediaproxy_admin.xml
Expand Up @@ -184,15 +184,15 @@ modparam("mediaproxy", "disable", 1)
<para>
<emphasis>
Default value is
<quote>/var/run/mediaproxy/dispatcher.sock</quote>.
<quote>/run/mediaproxy/dispatcher.sock</quote>.
</emphasis>
</para>

<example>
<title>Setting the <varname>mediaproxy_socket</varname> parameter</title>
<programlisting format="linespecific">
...
modparam("mediaproxy", "mediaproxy_socket", "/var/run/mediaproxy/dispatcher.sock")
modparam("mediaproxy", "mediaproxy_socket", "/run/mediaproxy/dispatcher.sock")
...
</programlisting>
</example>
Expand Down
2 changes: 1 addition & 1 deletion src/modules/mediaproxy/mediaproxy.c
Expand Up @@ -191,7 +191,7 @@ static int mediaproxy_disabled = False;
static str ice_candidate = str_init("none");

static MediaproxySocket mediaproxy_socket = {
"/var/run/mediaproxy/dispatcher.sock", // name
"/run/mediaproxy/dispatcher.sock", // name
-1, // sock
500, // timeout in 500 miliseconds if there is no answer
0, // time of the last failure
Expand Down

0 comments on commit fef7861

Please sign in to comment.