gitea/scripts/systemd/log

7 lines
202 B
Plaintext
Raw Normal View History

#!/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}