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