7 lines
202 B
Plaintext
7 lines
202 B
Plaintext
|
#!/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}
|