mirror of
https://github.com/chenasraf/venom.git
synced 2026-05-18 01:29:07 +00:00
14 lines
241 B
Bash
Executable File
14 lines
241 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
if [[ $# -lt 2 ]]; then
|
|
echo 'Usage: pnpm service <start|stop|restart|enable|disable|logs>'
|
|
return 1
|
|
fi
|
|
|
|
name=venom-$1
|
|
if [[ "$2" == "logs" ]]; then
|
|
journalctl -n 30 -f -u $name.service
|
|
else
|
|
systemctl $2 $name
|
|
fi
|