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