Stopping gnusocial daemons

This commit is contained in:
Bob Mottram 2016-10-27 19:56:57 +01:00
parent ec39b6b0f2
commit 1d7981b2b6
1 changed files with 9 additions and 3 deletions

View File

@ -443,7 +443,7 @@ function restore_remote_gnusocial {
# stop the daemons # stop the daemons
cd /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs cd /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs
scripts/stopdaemons.sh ./scripts/stopdaemons.sh
function_check gnusocial_create_database function_check gnusocial_create_database
gnusocial_create_database gnusocial_create_database
@ -456,7 +456,7 @@ function restore_remote_gnusocial {
# start the daemons # start the daemons
cd /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs cd /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs
scripts/startdaemons.sh ./scripts/startdaemons.sh
echo $"Restore of gnusocial complete" echo $"Restore of gnusocial complete"
fi fi
} }
@ -470,6 +470,10 @@ function remove_gnusocial {
echo "Removing $GNUSOCIAL_DOMAIN_NAME" echo "Removing $GNUSOCIAL_DOMAIN_NAME"
nginx_dissite $GNUSOCIAL_DOMAIN_NAME nginx_dissite $GNUSOCIAL_DOMAIN_NAME
remove_certs $GNUSOCIAL_DOMAIN_NAME remove_certs $GNUSOCIAL_DOMAIN_NAME
if [ -f /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts/stopdaemons.sh ]; then
cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts
./scripts/stopdaemons.sh
fi
if [ -d /var/www/$GNUSOCIAL_DOMAIN_NAME ]; then if [ -d /var/www/$GNUSOCIAL_DOMAIN_NAME ]; then
rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME
fi fi
@ -486,7 +490,9 @@ function remove_gnusocial {
remove_app gnusocial remove_app gnusocial
remove_completion_param install_gnusocial remove_completion_param install_gnusocial
sed -i '/gnusocial /d' $COMPLETION_FILE sed -i '/gnusocial /d' $COMPLETION_FILE
pkill queuedaemon if [ -f /etc/cron.hourly/gnusocial-daemons ]; then
rm /etc/cron.hourly/gnusocial-daemons
fi
} }
function install_gnusocial_main { function install_gnusocial_main {