Skip to content

Commit 0eafa43

Browse files
Update README.md
1 parent 871aac4 commit 0eafa43

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,23 @@ Then in your `configuration.nix`,
7474
}
7575
```
7676

77+
### Managing the server
78+
Once you have configured the Valheim server it will run as a service. You can manage this service using `systemctl` and `journalctl`.
79+
80+
```sh
81+
# Start, stop or restart the server. (requires superuser)
82+
$ systemctl <start|stop|restart> valheim
83+
```
84+
85+
```sh
86+
# Shows the runtime status with most recent log data.
87+
$ systemctl status valheim
88+
```
89+
90+
```sh
91+
# Shows live logs from the server.
92+
$ journalctl -u valheim -f
93+
```
94+
7795
## Notes on using mods
7896
Because BepInEx (the mod framework used by just about every Valheim mod) must both be installed in-tree with Valheim, and to be able to write to various files in the directory tree, we cannot run the modded Valheim server from the Nix store. To work around this without completely giving up on immutability, we copy the files out of the Nix store to a directory under `/var/lib/valheim` and run from there, but wipe and rebuild this directory on each launch.

0 commit comments

Comments
 (0)