prerm 458 B

123456789101112131415161718
  1. #!/bin/bash
  2. # prerm for smartbotic-automation
  3. set -e
  4. SERVICES="smartbotic-automation-webserver smartbotic-automation-runner"
  5. case "$1" in
  6. remove|deconfigure)
  7. if [ -d /run/systemd/system ]; then
  8. for svc in $SERVICES; do
  9. deb-systemd-invoke stop "$svc.service" >/dev/null 2>&1 || true
  10. deb-systemd-helper disable "$svc.service" >/dev/null 2>&1 || true
  11. done
  12. fi
  13. ;;
  14. esac
  15. exit 0