diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
commit | 47e6e7c84f008a53061e661f31ae96629bc694ef (patch) | |
tree | 648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /debian/pcp-webapi.postinst | |
download | pcp-debian.tar.gz |
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'debian/pcp-webapi.postinst')
-rw-r--r-- | debian/pcp-webapi.postinst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/pcp-webapi.postinst b/debian/pcp-webapi.postinst new file mode 100644 index 0000000..80559e2 --- /dev/null +++ b/debian/pcp-webapi.postinst @@ -0,0 +1,14 @@ +#!/bin/sh -e +#DEBHELPER# + +# must match src/pmwebapi/GNUmakefile +chown pcp:pcp /var/log/pcp/pmwebd +chmod 775 /var/log/pcp/pmwebd + +update-rc.d pmwebd defaults >/dev/null + +if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d pmwebd start +else + /etc/init.d/pmwebd start +fi |