~cadence/tube-docs

6dfb23e63d46f6c2551d6217f5d17fc1351771df — Julian Schacher 3 years ago 33a2743
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.
2 files changed, 34 insertions(+), 8 deletions(-)

M docs/Installing CloudTube.md
M docs/Installing NewLeaf.md
M docs/Installing CloudTube.md => docs/Installing CloudTube.md +17 -4
@@ 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

M docs/Installing NewLeaf.md => docs/Installing NewLeaf.md +17 -4
@@ 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