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
|
||||||
|
Loading…
Reference in New Issue
Block a user