new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / debian / prerm
index 5bcb011..4553f2d 100644 (file)
@@ -13,11 +13,7 @@ case "$1" in
 esac
 
 # stop the service
-if [ -x /usr/sbin/invoke-rc.d ]; then
-    invoke-rc.d ossec-hids stop
-else
-    /etc/init.d/ossec-hids stop
-fi
+service ossec-hids stop
 
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.