# Rust starts in your Linux terminal. Why does the service fail?

Hosting | Edition of 20 October 2026 | Rust Server Cupboard

Compare the working directory, account, and launch script without starting a second copy of your world.

## Use the working launch as a reference

You followed the old notes and launched Rust from a terminal. A friend joined and saw yesterday’s base. Later, the Linux service either failed immediately or came up with a fresh world. Write down the terminal’s current directory, the script you ran, and the account you used while they are still in front of you. The successful launch gives you a reference for the service to match.

Set aside a maintenance window for a comparison. Shut the working copy down cleanly before starting the service. Two Rust processes might try to use the same ports or write to the same save. A failed second start gives you a new error that can obscure the one you came to diagnose.


## Compare what systemd actually runs

Ask systemd for the service definition with systemctl cat followed by the service name. Read the main file and any overrides it prints. Compare ExecStart, WorkingDirectory and User with your successful terminal launch. Check EnvironmentFile if the script reads variables from one. Keep the file contents private if they include a console password.

A system service can start with a different current directory and less of your interactive shell environment. Suppose your terminal started in /srv/rust/main and the script refers to ./RustDedicated. If the service has no working directory, systemd can run it from the root directory, where that relative path points elsewhere. An absolute path to the launcher makes the executable easier to identify, while an explicit working directory helps any relative paths still used inside the script.

Follow the same comparison for the world. Facepunch documents that server.identity selects the server files. If the service can write to one folder but your terminal loaded a different identity, a fresh map may be the result of a successful start. Copy the settings from the working setup into your notes before making a correction.


## Let the first error narrow the change

Check the service journal around the failed start. A message about the executable points toward the path or how the launcher starts. A denied read or write points toward the named path and the service account’s access. A live console showing another map points toward the arguments and working directory. Address the specific difference you can verify before drawing conclusions from later errors.

If a service launches under a dedicated account, confirm that account can read its launch files and write the expected save directory. Give it access to the paths it needs. Running the service as root would change several variables at once and make the next diagnosis harder.

Check whether the failing launch has already created a fresh save before you restart again. Record its path without deleting it. That path can tell you where the service thought it was working and help you confirm that the correction points to the original world.


## Prove that the service owns the expected world

After correcting your own unit, reload systemd’s service definitions and start it once. Check the console for the map you expect. Join as a player and visit one landmark you remember from the terminal launch, such as your existing workshop. Then confirm a clean service stop and another service start bring you back to that same world. Record which account and folder worked, so the next person can make the comparison from a known starting point.


## Sources

- [systemd execution environment](https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html)
- [systemctl service management](https://www.freedesktop.org/software/systemd/man/latest/systemctl.html)
- [Facepunch guide to Rust server identity and save files](https://wiki.facepunch.com/rust/Getting-Started_w-Server)

## Further reading

- [Read your Rust server launch script](https://rustsc.com/learn/setup/read-your-rust-server-launch-script/index.html.md)
- [Find and fix a RustSC server problem](https://rustsc.com/support/guides/not-working/index.html.md)
- [Your Rust host has free disk space. Why can’t the game save?](https://rustsc.com/blog/rust-save-no-space-with-free-disk/index.html.md) (21 October 2026). Use Linux file counts to find a full filesystem even when there are gigabytes available.

[Rust server admin blog](https://rustsc.com/blog/index.html.md)

---

HTML version: https://rustsc.com/blog/rust-starts-in-terminal-but-not-as-a-service/
