#!/bin/sh set -e # Stop and disable service if running if [ -d /run/systemd/system ]; then if systemctl is-active --quiet p2pool.service; then echo "Stopping p2pool service..." systemctl stop p2pool.service fi if systemctl is-enabled --quiet p2pool.service 2>/dev/null; then echo "Disabling p2pool service..." systemctl disable p2pool.service fi fi exit 0