debian/gavodachs2-server.prerm
raw| 1 | #! /bin/sh |
| 2 | set -e |
| 3 | |
| 4 | stop_dachs() |
| 5 | { |
| 6 | # stop the "dachs" server |
| 7 | if [ -x "/etc/init.d/dachs" ]; then |
| 8 | if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then |
| 9 | invoke-rc.d dachs stop || exit $? |
| 10 | else |
| 11 | /etc/init.d/dachs stop || exit $? |
| 12 | fi |
| 13 | fi |
| 14 | } |
| 15 | |
| 16 | case "$1" in |
| 17 | remove) |
| 18 | stop_dachs |
| 19 | ;; |
| 20 | upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
| 21 | ;; |
| 22 | *) |
| 23 | echo "postrm called with unknown argument \`$1'" >&2 |
| 24 | exit 1 |
| 25 | ;; |
| 26 | esac |
| 27 | |
| 28 | #DEBHELPER# |