gitea/scripts/systemd/log

7 lines
202 B
Bash
Executable File

#!/bin/bash
ServiceName=gitea
Instance=$1
[[ ! $1 ]] && echo warning no instance supplied using default && Instance=default
Service=$ServiceName@$Instance
journalctl -u "$Service" | tail -f -n ${2:-50}