1
mirror of https://git.sr.ht/~cadence/tube-docs synced 2025-10-27 11:49:12 +00:00

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.
This commit is contained in:
Julian 2021-04-04 17:13:59 +02:00 committed by Cadence Ember
parent 33a2743563
commit 6dfb23e63d
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17
2 changed files with 34 additions and 8 deletions

View File

@ -103,6 +103,19 @@ WantedBy=default.target
Save to `~/.config/systemd/user/cloudtube.service`. 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 ### As system service
``` ```
@ -132,17 +145,17 @@ WantedBy=multi-user.target
Save to `/etc/systemd/system/cloudtube.service`. Save to `/etc/systemd/system/cloudtube.service`.
### Start service #### Start service
``` ```
$ systemctl daemon-reload # systemctl daemon-reload
$ systemctl start cloudtube # systemctl start cloudtube
``` ```
...and if all is successful... ...and if all is successful...
``` ```
$ systemctl enable cloudtube # systemctl enable cloudtube
``` ```
## nginx reverse proxy ## nginx reverse proxy

View File

@ -110,6 +110,19 @@ WantedBy=multi-user.target
Save to `~/.config/systemd/user/newleaf.service`. 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 ### As system service
``` ```
@ -139,17 +152,17 @@ WantedBy=multi-user.target
Save to `/etc/systemd/system/newleaf.service`. Save to `/etc/systemd/system/newleaf.service`.
### Start service #### Start service
``` ```
$ systemctl daemon-reload # systemctl daemon-reload
$ systemctl start newleaf # systemctl start newleaf
``` ```
...and if all is successful... ...and if all is successful...
``` ```
$ systemctl enable newleaf # systemctl enable newleaf
``` ```
## nginx reverse proxy ## nginx reverse proxy