#!/bin/bash
# delinuxco-helper-scripts: version 0.1.4

set -e

# Define the service name to avoid repetition
SERVICE="syncthing@$USER"

echo "...Stopping $SERVICE"
sudo systemctl stop "$SERVICE"

echo "...Disabling $SERVICE"
sudo systemctl disable "$SERVICE"

echo "--------------------------------------------------------"
echo "Successfully stopped and disabled syncthing."
echo "*** To enable syncthing again, run: (enable-syncthing) ***"
echo "--------------------------------------------------------"

exit 0

