14 lines
473 B
Desktop File
14 lines
473 B
Desktop File
[Unit]
|
|
Description=Valheim server
|
|
StopWhenUnneeded=yes
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/home/valheim/valheim
|
|
Environment=LD_LIBRARY_PATH=./linux64
|
|
Environment=SteamAppID=892970
|
|
ExecStart=/home/valheim/valheim/valheim_server.x86_64 -name "server_name" -port 2456 -nographics -batchmode -world "world_name" -password "password" -public 0
|
|
|
|
# Important! Always kill with SIGINT so that the server has a chance to save the world.
|
|
KillSignal=SIGINT
|
|
WatchdogSignal=SIGINT
|