docs: add loginctl linger
This commit is contained in:
parent
adcd7a4aba
commit
cdcc6311ac
@ -3,6 +3,8 @@
|
|||||||
```bash
|
```bash
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
# 1. Environment setup (Ubuntu 20.04)
|
# 1. Environment setup (Ubuntu 20.04)
|
||||||
|
|
||||||
|
# - assumes the account name is "deployer"
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
|
|
||||||
# install deps
|
# install deps
|
||||||
@ -51,6 +53,9 @@ sudo nano /etc/systemd/user/tower.service
|
|||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
systemctl --user start tower.service
|
systemctl --user start tower.service
|
||||||
systemctl --user enable tower.service
|
systemctl --user enable tower.service
|
||||||
|
|
||||||
|
# Enable systemd persistence
|
||||||
|
loginctl enable-linger deployer
|
||||||
```
|
```
|
||||||
|
|
||||||
### Debug
|
### Debug
|
||||||
@ -58,4 +63,4 @@ systemctl --user enable tower.service
|
|||||||
```bash
|
```bash
|
||||||
tail -n 100 -f ~/logs/node.log
|
tail -n 100 -f ~/logs/node.log
|
||||||
tail -n 100 -f ~/logs/tower.log
|
tail -n 100 -f ~/logs/tower.log
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user