Skip to content

Commit

Permalink
meta: Change user for systemd unit to unprivileged account
Browse files Browse the repository at this point in the history
  • Loading branch information
benmcmahon100 committed Jul 4, 2020
1 parent 9c30558 commit 1972e9a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions brickbot.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=brickbot
After=multi-user.target

[Service]
ExecStart=/usr/bin/node /home/brickbot/brickbot/src/bot.js
Restart=always
RestartSec=15
RestartPreventExitStatus=0
TimeoutStopSec=10
User=brickbot
Group=brickbot

[Install]
WantedBy=multi-user.target

0 comments on commit 1972e9a

Please sign in to comment.