Services restart script

Submitted by august on Wed, 08/02/2017 - 10:58
#!/bin/sh

if [ ! $(id -ru) -eq 0 ]; then
  echo "You must run this as root."
  exit
fi

for SERVICE in php5-fpm hhvm nginx varnish mysql memcached
do
  service $SERVICE restart
done

 

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.