Simplify systemd section in install.md (#851)
This commit is contained in:
parent
dfda363212
commit
c831e1c1cf
|
@ -199,27 +199,25 @@ At this point you should be able to visit your domain in the browser and see the
|
|||
|
||||
Copy the systemd service templates from the Mastodon directory:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
cp /home/mastodon/live/dist/mastodon-*.service /etc/systemd/system/
|
||||
```
|
||||
|
||||
Then edit the files to make sure the username and paths are correct:
|
||||
If you deviated from the defaults at any point, check that the username and paths are correct:
|
||||
|
||||
* `/etc/systemd/system/mastodon-web.service`
|
||||
* `/etc/systemd/system/mastodon-sidekiq.service`
|
||||
* `/etc/systemd/system/mastodon-streaming.service`
|
||||
```sh
|
||||
$EDITOR /etc/systemd/system/mastodon-*.service
|
||||
```
|
||||
|
||||
Finally, start and enable the new systemd services:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
systemctl daemon-reload
|
||||
systemctl start mastodon-web mastodon-sidekiq mastodon-streaming
|
||||
systemctl enable mastodon-web mastodon-sidekiq mastodon-streaming
|
||||
systemctl enable --now mastodon-web mastodon-sidekiq mastodon-streaming
|
||||
```
|
||||
|
||||
They will now automatically start at boot time.
|
||||
They will now automatically start at boot.
|
||||
|
||||
{{< hint style="success" >}}
|
||||
**Hurray! This is it. You can visit your domain in the browser now!**
|
||||
{{< /hint >}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue