Stopping daemons

This commit is contained in:
Bob Mottram 2017-06-03 19:58:09 +01:00
parent 7c7bb6a28c
commit db94320f94
2 changed files with 2 additions and 2 deletions

View File

@ -486,7 +486,7 @@ function remove_gnusocial {
rm /etc/cron.hourly/gnusocial-daemons
fi
if [ -f /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts/stopdaemons.sh ]; then
cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts
cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs
scripts/stopdaemons.sh
fi
kill_pid=$(ps aux | grep /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts/queuedaemon.php | awk -F ' ' '{print $2}' | head -n 1)

View File

@ -488,7 +488,7 @@ function remove_postactiv {
rm /etc/cron.hourly/postactiv-daemons
fi
if [ -f /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/scripts/stopdaemons.sh ]; then
cd /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/scripts
cd /var/www/$POSTACTIV_DOMAIN_NAME/htdocs
scripts/stopdaemons.sh
fi
kill_pid=$(ps aux | grep /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/scripts/queuedaemon.php | awk -F ' ' '{print $2}' | head -n 1)