debian/heartbeat.preinst
raw| 1 | #!/bin/sh |
| 2 | # |
| 3 | # License: GNU General Public License (GPL) |
| 4 | # |
| 5 | # postinst script for heartbeat |
| 6 | # |
| 7 | # see: dh_installdeb(1) |
| 8 | |
| 9 | set -e |
| 10 | |
| 11 | if [ -x /etc/init.d/heartbeat ]; then |
| 12 | if which invoke-rc.d >/dev/null 2>&1; then |
| 13 | invoke-rc.d heartbeat stop |
| 14 | else |
| 15 | /etc/init.d/heartbeat stop |
| 16 | fi |
| 17 | fi |
| 18 | |
| 19 | # dh_installdeb will replace this with shell code automatically |
| 20 | # generated by other debhelper scripts. |
| 21 | |
| 22 | #DEBHELPER# |
| 23 | |
| 24 | exit 0 |