diff --git a/package.json b/package.json index cb6eb52..38c868c 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/scripts/systemctl.zsh b/src/scripts/systemctl.zsh new file mode 100755 index 0000000..132e6d8 --- /dev/null +++ b/src/scripts/systemctl.zsh @@ -0,0 +1,8 @@ +#!/usr/bin/env zsh + +if [[ $# -eq 0 ]]; then + echo 'Usage: pnpm service ' + return 1 +fi + +systemctl $1 venom-bot