chore: add system/logs scripts

This commit is contained in:
2024-08-04 23:15:41 +00:00
parent 4cec0485af
commit 5d916c2847
2 changed files with 10 additions and 0 deletions

View File

@@ -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
View 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