build files for making podman containers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
288 B

#!/bin/bash
# Check if server is started
status=$(systemctl show mcbe -p ActiveState --value)
if [[ $status != active ]]; then
echo "Error: Server is not active!"
exit 1
fi
today=$(date "+%Y-%m-%d %H:%M:%S")
echo "$*" > /run/mcbe
sleep 0.2
journalctl -u mcbe -S "$today" -o cat