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