Simplify systemd section in install.md (#851)

This commit is contained in:
Janek 2021-01-16 14:58:17 +01:00 committed by GitHub
parent dfda363212
commit c831e1c1cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 10 deletions

View File

@ -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 >}}