fix(services/terraria): create a named socket for tmux

This commit is contained in:
Alexandre Cavalheiro 2024-12-08 19:54:27 -03:00
parent 7e521870be
commit c82f183021
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -7,7 +7,7 @@
Unit.Description = "Terraria TMUX Server";
Service = {
ExecStart = "${pkgs.tmux}/bin/tmux -S /run/user/1000/tmux-1000/terraria new -s Terraria -d /etc/profiles/per-user/wizardlink/bin/fhs -c 'dotnet ./tModLoader.dll -server -config serverconfig.txt'";
ExecStart = "${pkgs.tmux}/bin/tmux -L terraria new -s Terraria -d /etc/profiles/per-user/wizardlink/bin/fhs -c 'dotnet ./tModLoader.dll -server -config serverconfig.txt'";
ExecStop = "${pkgs.tmux}/bin/tmux kill-session -t Terraria";
Restart = "on-failure";
Type = "forking";