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:
parent
33a2743563
commit
6dfb23e63d
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user