Last active
May 27, 2020 08:23
-
-
Save fraktik/3874ae30db6107a4c77f157d8d59f620 to your computer and use it in GitHub Desktop.
Vufind - restart (Vufind2, Apache, MySQL, cleaning /var/log, showing disk quota )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo | |
echo Restarting + Cleaning of Vufind: Vufind2, Apache, MySQL, cleaning /var/log | |
echo | |
df -h | grep /dev/x | |
echo | |
echo _____________________Stopping:__________________________________________________ | |
cd /usr/local/vufind2 | |
./vufind.sh stop | |
echo | |
echo -- Vufind stopped | |
killall -s 9 java | |
echo -- Java killed | |
service apache2 stop | |
echo | |
echo -- service apache2 stoped | |
service mysql stop | |
echo | |
echo -- service mysql stopped | |
service memcached stop | |
echo | |
echo -- service memcached stopped | |
for CLEAN in $(find /var/log/ -type f) | |
do | |
cp /dev/null $CLEAN | |
done | |
echo | |
echo -- Log files cleaned | |
echo | |
echo _____________________All stopped - Starting_____________________________________ | |
echo | |
service memcached start | |
echo | |
echo -- service memcached started: | |
echo | |
service memcached status | |
service mysql start | |
echo | |
echo -- service mysql started: | |
echo | |
service mysql status | |
service apache2 start | |
echo | |
echo -- Service apache2 started: | |
echo | |
service apache2 status | |
./vufind.sh start | |
echo | |
echo -- Katalog: ./vufind.sh started | |
echo | |
df -h | |
echo | |
echo ________________________Succesfully restarted, free space:_______________________ | |
df -h | grep /dev/x | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment