vault backup: 2023-07-23 09:15:03
This commit is contained in:
parent
18fcd7bc08
commit
3b4be18dbf
@ -86,6 +86,13 @@ WorkingDirectory=/opt/minecraft
|
||||
ExecStart=/usr/bin/java -Xmx8G -Xms3g -jar /path/to/server.jar nogui
|
||||
```
|
||||
|
||||
Then run `suudo `
|
||||
Then run `sudo sytemctl enable minecraft.service` to have the server start up when the server is rebooted.
|
||||
|
||||
## Utility systemctl commands
|
||||
```
|
||||
# start the server
|
||||
sudo systemctl start minecraft.service
|
||||
# resta
|
||||
```
|
||||
|
||||
// TODO: https://unix.stackexchange.com/questions/612137/how-to-write-to-stdin-of-a-service
|
||||
|
Loading…
Reference in New Issue
Block a user