prva verzija za jessie
[fail2ban-cn.git] / debian / postinst
index 4adc7bc..cbd1e67 100755 (executable)
@@ -51,11 +51,7 @@ if [ -e "$CONF" ]; then
 fi
 
 # restart the services
-if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
-       invoke-rc.d fail2ban restart || exit $?
-else
-       /etc/init.d/fail2ban restart || exit $?
-fi
+service fail2ban restart || exit $?
 
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.