Debian 8 ad Ubuntu 16 use systemd instead of sysvinit by default for service management, so our after-install, after-remove, and before-remove scripts do not work as expected there. This updates those scripts to check for which is used, and act appropriately.
Debian 8 ad Ubuntu 16 use
systemd
instead ofsysvinit
by default for service management, so our after-install, after-remove, and before-remove scripts do not work as expected there. This updates those scripts to check for which is used, and act appropriately.Also, fpm was not set up to build for Debian 8.