Jonathan "Duke" Leto
11 years ago
3 changed files with 16 additions and 1 deletions
@ -0,0 +1,5 @@ |
|||
#!/bin/sh |
|||
|
|||
/etc/init.d/apache2 restart |
|||
/etc/init.d/varnish restart |
|||
/etc/init.d/nginx restart |
@ -0,0 +1,10 @@ |
|||
#!/bin/bash |
|||
if [[ $EUID -ne 0 ]]; then |
|||
echo "You must be a root user" 2>&1 |
|||
exit 1 |
|||
else |
|||
service nginx configtest && service nginx restart |
|||
service php5-fpm restart |
|||
# no varnish configtest! be careful |
|||
service varnish restart |
|||
fi |
Loading…
Reference in new issue