summaryrefslogtreecommitdiff
path: root/debian/pcp-manager.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/pcp-manager.postinst')
-rw-r--r--debian/pcp-manager.postinst14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/pcp-manager.postinst b/debian/pcp-manager.postinst
new file mode 100644
index 0000000..ee9fda8
--- /dev/null
+++ b/debian/pcp-manager.postinst
@@ -0,0 +1,14 @@
+#!/bin/sh -e
+#DEBHELPER#
+
+# must match src/pmmgr/GNUmakefile
+chown pcp:pcp /var/log/pcp/pmmgr
+chmod 775 /var/log/pcp/pmmgr
+
+update-rc.d pmmgr defaults >/dev/null
+
+if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d pmmgr start
+else
+ /etc/init.d/pmmgr start
+fi