Merge branch 'master' of git://git.pcp.io/kenj/pcp into kenj-merge
[pcp.git] / debian / pcp.prerm
blob28671f5030750fed4de99f748b84d76507e643bc
1 #!/bin/sh -e
2 #DEBHELPER#
3 if which invoke-rc.d >/dev/null 2>&1; then
4 invoke-rc.d pmproxy stop
5 invoke-rc.d pmie stop
6 if [ -f /etc/init.d/pmcd ]; then
7 # PCP 4.0 style
8 invoke-rc.d pmlogger stop
9 invoke-rc.d pmcd stop
10 else
11 # PCP pre-4.0 style
12 invoke-rc.d pcp stop
14 else
15 /etc/init.d/pmproxy stop
16 /etc/init.d/pmie stop
17 if [ -f /etc/init.d/pmcd ]; then
18 # PCP 4.0 style
19 /etc/init.d/pmlogger stop
20 /etc/init.d/pmcd stop
21 else
22 # PCP pre-4.0 style
23 /etc/init.d/pcp stop
26 rm -f /var/lib/pcp/pmns/.NeedRebuild