remotes
This commit is contained in:
1 parent
4f0886b6cd
commit
02017d470f
16 files changed
+2665
-84
No files matched your search
@@ -5,8 +5,8 @@ Priority: optional
|
||||
Architecture: all
|
||||
Installed-Size: @INSTALLED_SIZE@
|
||||
Maintainer: Your Name <you@example.com>
|
||||
Depends: unzip, systemd
|
||||
Recommends: curl, libicu76 | libicu74 | libicu72 | libicu70 | libicu-dev
|
||||
Depends: unzip, systemd, python3, openssl
|
||||
Recommends: curl, libicu76 | libicu74 | libicu72 | libicu70 | libicu-dev, polkitd
|
||||
Conflicts: terraria-instance
|
||||
Replaces: terraria-instance
|
||||
Suggests: bash-completion
|
||||
@@ -18,6 +18,11 @@ Description: run multiple Terraria and tModLoader dedicated servers with systemd
|
||||
Server software is not included. Place the official server zips in
|
||||
/var/lib/terraria/dist and they are unpacked into each instance on demand.
|
||||
.
|
||||
curl and ICU are only needed for tModLoader instances.
|
||||
.
|
||||
Hosts can also be managed from other hosts (terractl --host, copy, move)
|
||||
through the optional terractld daemon.
|
||||
.
|
||||
curl and ICU are only needed for tModLoader instances. polkitd lets members
|
||||
of the terraria group start, stop and restart servers without sudo.
|
||||
.
|
||||
This package replaces terraria-instance (the same tool under its old name).
|
||||
@@ -19,6 +19,11 @@ case "$1" in
|
||||
for unit in $running; do echo " sudo systemctl restart $unit"; done
|
||||
fi
|
||||
fi
|
||||
# The daemon (if it's on) runs the new version right away; it only serves
|
||||
# other hosts, so restarting it doesn't affect the game servers
|
||||
if [ -d /run/systemd/system ]; then
|
||||
systemctl try-restart terractld.service || true
|
||||
fi
|
||||
# Running instances are not restarted; they pick up changes on their next start.
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -6,6 +6,9 @@ case "$1" in
|
||||
# Forget which instances were enabled at boot
|
||||
rm -f /etc/systemd/system/multi-user.target.wants/terraria@*.service
|
||||
rm -rf /etc/systemd/system/terraria@.service.d
|
||||
# The daemon: whether it's on, its certificate and the computers it trusts
|
||||
rm -f /etc/systemd/system/multi-user.target.wants/terractld.service
|
||||
rm -rf /etc/systemd/system/terractld.service.d /var/lib/terractl
|
||||
cat >&2 <<MSG
|
||||
terraria-server-manager purged. Worlds and instances in /var/lib/terraria and the
|
||||
'terraria' user were kept. Remove them manually if they are no longer needed:
|
||||
|
||||
@@ -7,6 +7,7 @@ set -e
|
||||
case "$1" in
|
||||
remove|deconfigure)
|
||||
if [ -d /run/systemd/system ]; then
|
||||
systemctl stop terractld.service || true
|
||||
units=$(systemctl list-units --plain --no-legend --all 'terraria@*.service' | awk '{print $1}')
|
||||
if [ -n "$units" ]; then
|
||||
echo "Stopping Terraria instances: $units"
|
||||
|
||||
Reference in new issue
Block a user