Browse Source

Revert "Add delay to service restart to prevent rate-limit issues"

This reverts commit a5394218e0240dacf8636ed3fae018c2dc7e227f.
Kristan Kenney 6 years ago
parent
commit
ae991ae2ab
1 changed files with 0 additions and 3 deletions
  1. 0 3
      bin/v-restart-service

+ 0 - 3
bin/v-restart-service

@@ -29,7 +29,6 @@ service_status=$(pgrep $service)
 #                       Action                             #
 #                       Action                             #
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 
 
-# Restart service if not running instead of trying to reload
 if [ -z "$service_status" ]; then
 if [ -z "$service_status" ]; then
     force="yes"
     force="yes"
 fi
 fi
@@ -49,10 +48,8 @@ elif [ -z "$force" -o "$force" = "no" ] && [ \
         "$service" = "proftpd" -o    \
         "$service" = "proftpd" -o    \
         "$service" = "ssh" -o       \
         "$service" = "ssh" -o       \
         "$service" = "fail2ban" ]; then
         "$service" = "fail2ban" ]; then
-    sleep 1
     systemctl reload $service > /dev/null 2>&1
     systemctl reload $service > /dev/null 2>&1
 else
 else
-    sleep 1
     systemctl restart $service > /dev/null 2>&1
     systemctl restart $service > /dev/null 2>&1
 fi
 fi