Skip to content

autostart #332

Answered by sandain
kotovasia5120 asked this question in Q&A
Sep 13, 2023 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

As @zanix mentions, if you are trying to autostart/autostop a single world server at a time and use systemd, you can use the service template that is already installed using our normal install method.

First, disable the default service that will start/stop all world servers:

sudo systemctl disable mscs

Next, enable the service for each of your worlds individually:

sudo systemctl enable mscs@world1
sudo systemctl enable mscs@world2
sudo systemctl enable mscs@spigot

Finally, start the service for each of your worlds individually:

sudo systemctl start mscs@world1
sudo systemctl start mscs@world2
sudo systemctl start mscs@spigot

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@kotovasia5120
Comment options

@zanix
Comment options

@zanix
Comment options

@sandain
Comment options

Answer selected by kotovasia5120
@kotovasia5120
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants