File: pcp.postinst

package info (click to toggle)
pcp 3.3.3-squeeze3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 14,452 kB
  • ctags: 9,608
  • sloc: ansic: 102,434; sh: 16,080; perl: 5,011; makefile: 2,275; yacc: 2,112; lex: 1,069; xml: 82; fortran: 60; java: 22; awk: 20
file content (14 lines) | stat: -rw-r--r-- 321 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e
#DEBHELPER#
touch /var/lib/pcp/pmns/.NeedRebuild
chmod 644 /var/lib/pcp/pmns/.NeedRebuild

update-rc.d pcp defaults >/dev/null
update-rc.d pmie defaults >/dev/null
update-rc.d pmproxy defaults >/dev/null

if which invoke-rc.d >/dev/null 2>&1; then
    invoke-rc.d pcp start
else
    /etc/init.d/pcp start
fi