Sha256: e638876baf3d152b38b114f69ff0eec4d7f3cbc3feea5e2739a98f600b002f0a

Contents?: true

Size: 765 Bytes

Versions: 42

Compression:

Stored size: 765 Bytes

Contents

#!/bin/bash

#echo "before_remove script is running ..."
echo "Stopping rhoconnect services and remove init scripts ..."

# Stop redis
if [ -e "/etc/init.d/redis" ]; then
  /etc/init.d/redis stop
  if [[ `which dpkg 2> /dev/null` != "" ]]; then  # Debian
    update-rc.d -f redis remove
  elif [[ `which rpm 2> /dev/null` != "" ]]; then # Red Hat
    /sbin/chkconfig redis off
  fi
fi

#stop thin
[ "$(ps aux | grep '[t]hin')" ] && [ -e "/etc/init.d/thin" ] && /etc/init.d/thin stop

#stop nginx
[ "$(ps aux | grep '[n]ginx')" ] && [ -e "/etc/init.d/nginx" ] && /etc/init.d/nginx stop

rm -f /etc/init.d/redis
rm -f /etc/logrotate.d/redis

rm -f /etc/init.d/nginx
rm -f /etc/logrotate.d/nginx

rm -f /etc/thin/rhoapp.yml
rm -f /etc/rc.d/thin
rm -f /etc/init.d/thin

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
rhoconnect-4.0.0.beta.24 installer/unix-like/pre_uninstall.sh
rhoconnect-3.4.5 installer/unix-like/pre_uninstall.sh
rhoconnect-4.0.0.beta.10 installer/unix-like/pre_uninstall.sh
rhoconnect-4.0.0.beta.12 installer/unix-like/pre_uninstall.sh
rhoconnect-3.4.4 installer/unix-like/pre_uninstall.sh
rhoconnect-3.4.3 installer/unix-like/pre_uninstall.sh
rhoconnect-3.4.2 installer/unix-like/pre_uninstall.sh
rhoconnect-3.3.6 installer/unix-like/pre_uninstall.sh
rhoconnect-3.3.5 installer/unix-like/pre_uninstall.sh
rhoconnect-3.3.4 installer/unix-like/pre_uninstall.sh
rhoconnect-3.3.3 installer/unix-like/pre_uninstall.sh
rhoconnect-3.3.2 installer/unix-like/pre_uninstall.sh
rhoconnect-3.3.1 installer/unix-like/pre_uninstall.sh
rhoconnect-3.3.1.beta4 installer/unix-like/pre_uninstall.sh
rhoconnect-3.3.1.beta3 installer/unix-like/pre_uninstall.sh
rhoconnect-3.3.1.beta2 installer/unix-like/pre_uninstall.sh
rhoconnect-3.2.1 installer/unix-like/pre_uninstall.sh
rhoconnect-3.2.0 installer/unix-like/pre_uninstall.sh
rhoconnect-3.2.0.beta5 installer/unix-like/pre_uninstall.sh
rhoconnect-3.2.0.beta4 installer/unix-like/pre_uninstall.sh