#!/bin/sh if systemctl reload frontend; then ./check || tail /var/log/frontend/error.log else systemctl -l status frontend exit 1 fi