#!/usr/bin/env bash # Stop and disable the service if it's running if systemctl is-enabled stalwart.service >/dev/null 2>&1; then systemctl stop stalwart.service systemctl disable stalwart.service fi