nimbus-eth2/scripts/package_src/nimbus_beacon_node/before_remove

12 lines
193 B
Bash

#!/bin/sh
set -e
SERVICE_NAME="nimbus_beacon_node"
if systemctl --all --type service | grep -q "$SERVICE_NAME"; then
systemctl stop "$SERVICE_NAME"
systemctl disable "$SERVICE_NAME"
fi