From 6dfb23e63d46f6c2551d6217f5d17fc1351771df Mon Sep 17 00:00:00 2001 From: Julian Schacher Date: Sun, 4 Apr 2021 17:13:59 +0200 Subject: [PATCH] Differentiate Between User and System Service Manager Currently the documentation only shows how to talk to the system service manager, which doesn't work for user services, so show both usages in the docs. Also make clear that root privileges are needed for the interaction with the system service manager. --- docs/Installing CloudTube.md | 21 +++++++++++++++++---- docs/Installing NewLeaf.md | 21 +++++++++++++++++---- 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/docs/Installing CloudTube.md b/docs/Installing CloudTube.md index 34aa790..71c521d 100644 --- a/docs/Installing CloudTube.md +++ b/docs/Installing CloudTube.md @@ -103,6 +103,19 @@ WantedBy=default.target Save to `~/.config/systemd/user/cloudtube.service`. +#### Start service + +``` +$ systemctl --user daemon-reload +$ systemctl --user start cloudtube +``` + +...and if all is successful... + +``` +$ systemctl --user enable cloudtube +``` + ### As system service ``` @@ -132,17 +145,17 @@ WantedBy=multi-user.target Save to `/etc/systemd/system/cloudtube.service`. -### Start service +#### Start service ``` -$ systemctl daemon-reload -$ systemctl start cloudtube +# systemctl daemon-reload +# systemctl start cloudtube ``` ...and if all is successful... ``` -$ systemctl enable cloudtube +# systemctl enable cloudtube ``` ## nginx reverse proxy diff --git a/docs/Installing NewLeaf.md b/docs/Installing NewLeaf.md index 24b1f66..789aabf 100644 --- a/docs/Installing NewLeaf.md +++ b/docs/Installing NewLeaf.md @@ -110,6 +110,19 @@ WantedBy=multi-user.target Save to `~/.config/systemd/user/newleaf.service`. +#### Start service + +``` +$ systemctl --user daemon-reload +$ systemctl --user start newleaf +``` + +...and if all is successful... + +``` +$ systemctl --user enable newleaf +``` + ### As system service ``` @@ -139,17 +152,17 @@ WantedBy=multi-user.target Save to `/etc/systemd/system/newleaf.service`. -### Start service +#### Start service ``` -$ systemctl daemon-reload -$ systemctl start newleaf +# systemctl daemon-reload +# systemctl start newleaf ``` ...and if all is successful... ``` -$ systemctl enable newleaf +# systemctl enable newleaf ``` ## nginx reverse proxy