#!/bin/bash r=`wget -q localhost:8080` if [ $? -ne 0 ] then /opt/tomcat/bin/startup.sh else echo "OK" fi
Depois de criar esse arquivo dê permissão de executável.
sudo chmod +x arquivo.sh
Para finalizar coloque ele para ser chamado no crontab.
Nota do livro: 10.
NodeCloud is a resource directory gathering sites related to Node.js and ordering them by their Alexa traffic, allowing to evaluate relative popularity of a project. Screenshots are generated locally using SlimerJS.
I had to add
on context tag inside context.xml
Looks like you need to uncomment the following:
#LoadModule userdir_module libexec/apache2/mod_userdir.so
Then in httpd-userdir.conf you may need to uncomment:
Lastly you would need to create /private/etc/apache2/users/kevin.conf if it doesn’t exist. I think it should look something like this:
<Directory "/Users/kevin/Sites/"> Options Indexes MultiViews AllowOverride None Require all granted </Directory>
Make sure to restart the Apache server afterwards with:
sudo apachectl restart