mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 15:17:01 +05:30
Move walls bot to unprivileged user
Just sound security IMO Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
74a9ac1246
commit
d4848fe485
1 changed files with 3 additions and 3 deletions
|
@ -5,9 +5,9 @@ After=network.target
|
|||
[Service]
|
||||
Restart=on-abort
|
||||
Type=simple
|
||||
User=msfjarvis
|
||||
WorkingDirectory=/home/msfjarvis/walls-manager
|
||||
ExecStart=/home/msfjarvis/walls-manager/venv/bin/python bot.py
|
||||
User=bot
|
||||
WorkingDirectory=/home/bot/walls-manager
|
||||
ExecStart=/home/bot/walls-manager/venv/bin/python bot.py
|
||||
ExecReload=/bin/kill -USR1 $MAINPID
|
||||
|
||||
; Use graceful shutdown with a reasonable timeout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue