add explnation for lingering in README
This commit is contained in:
@@ -5,5 +5,6 @@ docs folder includes some documentation about how to use server. Please read doc
|
|||||||
|
|
||||||
## Scripts
|
## Scripts
|
||||||
|
|
||||||
### adduser-script
|
### [adduser-script](/scripts/adduser-space)
|
||||||
enables lingering after creating a user
|
enables lingering after creating a user\
|
||||||
|
lingering means user's systemd services are continue work after logout and start with system start
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
username=$1
|
username=$1
|
||||||
useradd -m -s /bin/bash "$username"
|
useradd -m -s /bin/bash "$username"
|
||||||
loginctl enable-linger "$username" # for user's systemd services to work after logout and start with system start
|
loginctl enable-linger "$username"
|
||||||
echo "$username"
|
echo "$username"
|
||||||
|
|||||||
Reference in New Issue
Block a user