mirror of
https://github.com/chenasraf/venom.git
synced 2026-05-17 17:28:08 +00:00
chore: add system/logs scripts
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
"scripts": {
|
||||
"start": "tsx src/index.ts",
|
||||
"dev": "nodemon --exec tsx src/index.ts",
|
||||
"service": "src/scripts/systemctl.zsh",
|
||||
"logs": "journalctl -f -u venom-bot.service",
|
||||
"build": "tsc && tsc-alias",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
|
||||
8
src/scripts/systemctl.zsh
Executable file
8
src/scripts/systemctl.zsh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
if [[ $# -eq 0 ]]; then
|
||||
echo 'Usage: pnpm service <start|stop|restart|enable|disable>'
|
||||
return 1
|
||||
fi
|
||||
|
||||
systemctl $1 venom-bot
|
||||
Reference in New Issue
Block a user