mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-16 04:27: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]
|
[Service]
|
||||||
Restart=on-abort
|
Restart=on-abort
|
||||||
Type=simple
|
Type=simple
|
||||||
User=msfjarvis
|
User=bot
|
||||||
WorkingDirectory=/home/msfjarvis/walls-manager
|
WorkingDirectory=/home/bot/walls-manager
|
||||||
ExecStart=/home/msfjarvis/walls-manager/venv/bin/python bot.py
|
ExecStart=/home/bot/walls-manager/venv/bin/python bot.py
|
||||||
ExecReload=/bin/kill -USR1 $MAINPID
|
ExecReload=/bin/kill -USR1 $MAINPID
|
||||||
|
|
||||||
; Use graceful shutdown with a reasonable timeout
|
; Use graceful shutdown with a reasonable timeout
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue