2023-07-23 14:11:03 +00:00
|
|
|
This enables minecraft to run in the background, restart if it crashes, etc etc.
|
|
|
|
|
2023-07-23 14:12:03 +00:00
|
|
|
In `/etc/systemd/system`, place this file and tailor it to your liking.
|
|
|
|
```
|
|
|
|
[Unit]
|
|
|
|
Description=Minecraft Servre
|
2023-07-23 14:13:03 +00:00
|
|
|
# I don't know what these mean I'm getting them from here:
|
|
|
|
# https://gist.github.com/dotStart/ea0455714a0942474635
|
2023-07-23 14:12:03 +00:00
|
|
|
Wants=network-online.target
|
2023-07-23 14:13:03 +00:00
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
# If wanted, you can set a particular group or user to run the service under
|
|
|
|
# User =
|
2023-07-23 14:12:03 +00:00
|
|
|
```
|