Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
nice: a command must be given with an adjustment
Try 'nice --help' for more information.
I'm getting that error.
All answers to your questions are accessible through
(That's a single one-liner. Steam wraps the line.)
Don't go overboard with -20. A simple "-1" value will put it on the CPU over all userland processes, and you actually want the disk I/O processes and various system-level tasks to be able to their jobs, too.
If you're starting to need prioritizing to get it running decently, you'd better look for a more powerful server, OR, seek for addons messing your server up.
That being said, if you are only going to run one Rust server ever, you can simply put this as a crontab task for root that executes every hour. If the server's running, it'll be nice-adjusted to -1, if the Rust server isn't running for some reason, no harm. The crontab entry for root to run hourly would be:
I changed it a bit so as to be more "reliable," in the sense that the former command has the possibility of picking a process id that doesn't belong to the Rust server.
The above grabs whatever process is listening on port 28015 and UDP (the Rust server, if you're using the standard ports) and renice's it to -1. It's more specific inasmuch as it grabs the specific process listening on the port, whereas the former command (above) just grabs anything with RustDedicated in the process list, and assumes that there's just one (that's not a good assumption).
If I were automating this, I'd use this latter approach as it's less apt to picking a false process id.
Edit the crontab as root with: