[DiscordArchive] I'll give you my scripts now, is it systemd?
[DiscordArchive] I'll give you my scripts now, is it systemd?
Archived author: helenah1734 • Posted: 2024-06-29T12:45:40.552000+00:00
Original source
I'll give you my scripts now, is it systemd?
Archived author: helenah1734 • Posted: 2024-06-29T12:46:15.354000+00:00
Original source
Anyway, mine runs worldserver in a tmux session, why? Because then systemd can tell the server to cleanly shut down when you stop the service which warns the players.
Archived author: helenah1734 • Posted: 2024-06-29T12:46:38.484000+00:00
Original source
worldserver.service
Archived author: ttopper • Posted: 2024-06-29T12:48:16.861000+00:00
Original source
yeah it's systemd
Archived author: ttopper • Posted: 2024-06-29T12:48:19.785000+00:00
Original source
ty!
Archived author: helenah1734 • Posted: 2024-06-29T12:48:37.583000+00:00
Original source
So place that in /etc/systemd/system, then do something like **systemctl enable worldserver@realm_name** then **systemctl start worldserver@realm_name**, you will want to go through the file to change the pathing, if you don't want it to end in a realm name, you just need to rename that file from **[email protected]** to **worldserver.service**, then it can only ever be responsible for one worldserver.
Archived author: helenah1734 • Posted: 2024-06-29T12:48:59.562000+00:00
Original source
OH, and check for %i in that file, this is the variable that gets assigned the value after the @ sign.
Archived author: helenah1734 • Posted: 2024-06-29T12:50:41.324000+00:00
Original source
Anyway, regarding warning the players, when you stop the service, the players will get a countdown, systemd will wait on the process to terminate gracefully.
Archived author: helenah1734 • Posted: 2024-06-29T12:52:24.008000+00:00
Original source
Also, please let me know if you are understanding the script, I'm here to help, I can explain anything in there.
Archived author: ttopper • Posted: 2024-06-29T12:54:02.771000+00:00
Original source
ty, i think i got it