File use_distro_path.patch of Package eturnal
Index: eturnal/build.config
===================================================================
--- eturnal.orig/build.config
+++ eturnal/build.config
@@ -3,9 +3,9 @@
%%% Note that these settings may be overridden using environment variables of
%%% the same name, but upper-case.
-{eturnal_user, "eturnal"}. % The user running eturnal.
-{eturnal_prefix, "/opt/eturnal"}. % The installation directory.
+{eturnal_user, "_eturnal"}. % The user running eturnal.
+{eturnal_prefix, "/usr/lib/eturnal"}. % The installation directory.
{eturnal_etc_dir, "/etc"}. % The directory containing the eturnal.yml.
{erl_epmd_address, "127.0.0.1"}. % See <https://erlang.org/doc/man/epmd.html>.
{erl_dist_port, ""}. % Specify a port number to avoid spawning EPMD.
-{code_loading, "static"}. % Specify "dynamic" to avoid hard-coded dep versions.
+{code_loading, "dynamic"}. % Specify "dynamic" to avoid hard-coded dep versions.
Index: eturnal/overlay/init/systemd/eturnal.service
===================================================================
--- eturnal.orig/overlay/init/systemd/eturnal.service
+++ eturnal/overlay/init/systemd/eturnal.service
@@ -1,6 +1,6 @@
[Unit]
Description=eturnal STUN/TURN server
-Wants=epmd.service
+Requires=epmd.service
After=epmd.service network.target
Documentation=https://eturnal.net/documentation/
Documentation=https://github.com/processone/eturnal/blob/{{release_version}}/README.md