de-daemonize 255 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. source $SNAP/helper/functions
  3. require_root
  4. snapctl stop --disable "${SNAP_NAME}.${SNAP_NAME}"
  5. if [ $? -eq 0 ]; then
  6. echo "Service ${SNAP_NAME} disabled."
  7. exit 0
  8. fi
  9. echo "Failed disabling ${SNAP_NAME} service" >&2
  10. exit 1