From c831e1c1cf883b1912c6fb841795222ce7a633cc Mon Sep 17 00:00:00 2001 From: Janek Date: Sat, 16 Jan 2021 14:58:17 +0100 Subject: [PATCH] Simplify systemd section in install.md (#851) --- content/en/admin/install.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/content/en/admin/install.md b/content/en/admin/install.md index 76a374c3..8beead3e 100644 --- a/content/en/admin/install.md +++ b/content/en/admin/install.md @@ -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 >}} -