This commit is contained in:
abrown38 committed 2026-09-30 17:11:22 +00:00
1 parent 4f0886b6cd
commit 02017d470f
16 files changed
+2665 -84

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
[Unit]
Description=terractl daemon: lets other hosts manage this host's Terraria servers
Documentation=file://@DOCDIR@/README.md
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
# Listens on TERRACTL_LISTEN from /etc/default/terractl (default: all addresses,
# port 7776). Its certificate and the list of trusted computers are kept in
# /var/lib/terractl. Manage it with: terractl daemon enable|disable|status|trust
ExecStart=@BINDIR@/terractl daemon serve
Restart=on-failure
RestartSec=5
StateDirectory=terractl
StateDirectoryMode=0755
# Runs as root: it creates, deletes, starts and stops instances for trusted
# computers, like sudo terractl does. Everything else is locked down.
NoNewPrivileges=true
ProtectSystem=full
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
LockPersonality=true
[Install]
WantedBy=multi-user.target
+1 -1
View File
@@ -18,7 +18,7 @@ ExecStartPre=@BINDIR@/terractl prepare %i
# Execs the vanilla or tModLoader server depending on instance.conf
ExecStart=@BINDIR@/terractl run %i
# Sends "exit" to the console (saves the world) and waits for shutdown
ExecStop=@BINDIR@/terractl stop %i $MAINPID
ExecStop=@BINDIR@/terractl service-stop %i $MAINPID
StandardInput=socket
StandardOutput=journal