#!/bin/sh set -e # Stop service if running if [ -d /run/systemd/system ] && systemctl is-active --quiet p2pool.service; then echo "Stopping P2Pool service..." systemctl stop p2pool.service fi exit 0