#!/bin/sh

# errors shouldn't cause script to exit
set +e

sudo initctl stop shiny-server 2>/dev/null

# clear error termination state
set -e

#!/bin/sh

# errors shouldn't cause script to exit
set +e

if [ -f /etc/init/shiny-server.conf ]
then
  sudo initctl stop shiny-server 2>/dev/null
fi

if [ -f /etc/init.d/shiny-server ]
then
  sudo service shiny-server stop 2>/dev/null
fi

# clear error termination state
set -e

Stop init.d service on uninstall in RPM.
Stop init.d service on uninstall in RPM.
