Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update private server start command #130

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions source/contributed/ps_ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ As the system tends to be very CPU intensive it is recommended that you avoid "b
The following steps will need some common build and development tools, which we'll install here.

```shell
sudo apt install -y build-essential tcl git
sudo apt install -y build-essential tcl git curl
```


Expand Down Expand Up @@ -193,14 +193,20 @@ After=network-online.target
[Service]
Type=simple
WorkingDirectory=/home/screeps/world
ExecStart=/home/screeps/world/node_modules/screeps/bin/screeps.js start
ExecStart=/usr/bin/npx screeps start
User=screeps
Group=screeps

[Install]
WantedBy=multi-user.target
```

Check and correct the npx path in line `ExecStart=/usr/bin/npx screeps start` with the value returned by the command-

```shell
which npx
```

This tells the system that the Screeps server will require networking, should run as the `screeps` user and group, what directory to start it in, and the startup command itself.

We'll need to tell systemd to load the new service we just created-
Expand Down