add systemd unit and update deps
This commit is contained in:
parent
11f11cdac1
commit
4de7d2955d
|
@ -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
|
||||
|
|
@ -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"
|
||||
},
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue