File: preinst

package info (click to toggle)
rrdcollect 0.2.10-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 708 kB
  • ctags: 186
  • sloc: ansic: 2,330; sh: 1,373; makefile: 121
file content (12 lines) | stat: -rw-r--r-- 211 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash -e

if [ "$1" = "upgrade" ]; then
    if [ -x /usr/sbin/invoke-rc.d ]; then
        invoke-rc.d rrdcollect stop || true
    else
        /etc/init.d/rrdcollect stop || true
    fi
fi

##DEBHELPER##