4 Commits

Author SHA1 Message Date
just-mn
bdf694d7a7 add explnation for lingering in README 2026-02-22 15:49:36 +03:00
738e40ba48 script adduser-space 2026-02-22 14:34:11 +02:00
3d3c28807c Merge pull request 'docs' (#1) from init into main
Reviewed-on: #1
Reviewed-by: just-mn <just-mn@noreply.localhost>
2026-02-22 12:02:32 +00:00
2f09a841bc pr answered 2026-02-22 14:00:42 +02:00
2 changed files with 7 additions and 1 deletions

View File

@@ -2,3 +2,9 @@
## Docs
docs folder includes some documentation about how to use server. Please read docs and ask questions if you don't understand how to use smth directly or in issues
## Scripts
### [adduser-script](/scripts/adduser-space)
enables lingering after creating a user\
lingering means user's systemd services are continue work after logout and start with system start

View File

@@ -2,5 +2,5 @@
username=$1
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"