add systemd unit and update deps

This commit is contained in:
Ben Harris 2018-05-02 15:35:19 -04:00
parent 11f11cdac1
commit 4de7d2955d
3 changed files with 515 additions and 374 deletions

18
benbot.service Normal file
View File

@ -0,0 +1,18 @@
[Unit]
Description=benbot discord bot
After=benbot.service
[Service]
Type=simple
ExecStart=/usr/bin/env php run.php
WorkingDirectory=/home/ben/workspace/benbot
User=ben
Group=ben
Restart=always
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
[Install]
WantedBy=default.target

View File

@ -14,7 +14,7 @@
"guzzlehttp/guzzle": "~6.0",
"vlucas/phpdotenv": "^2.4",
"voku/stringy": "^2.2",
"ext-libsodium": "*",
"ext-sodium": "*",
"ext-msgpack": "*",
"php": ">=7.1.4"
},

869
composer.lock generated Executable file → Normal file

File diff suppressed because it is too large Load Diff