Services restart script
#!/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
#!/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