[Unit] Description=Update beszel-agent if needed Wants=beszel-agent.service [Service] Type=oneshot ExecStart=/bin/sh -c '/opt/beszel-agent/beszel-agent update | grep -q "Successfully updated" && systemctl restart beszel-agent'