summaryrefslogtreecommitdiff
path: root/debian/prerm
blob: 9ddebb787851e833e7c5a2b9914cf1531ee2b69f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# prerm script for rhdropbox

set -e

if [ -x "/etc/init.d/rhdropbox" ] && [ "$1" = remove ]; then
  if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
    invoke-rc.d rhdropbox stop || true
  else
    /etc/init.d/rhdropbox stop || true
  fi
fi