|
@@ -544,6 +544,7 @@ function remove_xmpp {
|
544
|
544
|
remove_onion_service xmpp 5222 5223 5269
|
545
|
545
|
|
546
|
546
|
apt-get -yq remove --purge prosody
|
|
547
|
+ rm /etc/cron.daily/prosody
|
547
|
548
|
if [ -f $INSTALL_DIR/$prosody_modules_filename ]; then
|
548
|
549
|
rm $INSTALL_DIR/$prosody_modules_filename
|
549
|
550
|
fi
|
|
@@ -1059,6 +1060,13 @@ function install_xmpp {
|
1059
|
1060
|
exit 347682
|
1060
|
1061
|
fi
|
1061
|
1062
|
|
|
1063
|
+ # On rare occasions the daemon appears to get stuck
|
|
1064
|
+ # i.e. still active, but not accepting connections
|
|
1065
|
+ # This ensures that it will unstick itself at least once per day
|
|
1066
|
+ echo '#!/bin/bash' > /etc/cron.daily/prosody
|
|
1067
|
+ echo 'systemctl restart prosody' >> /etc/cron.daily/prosody
|
|
1068
|
+ chmod +x /etc/cron.daily/prosody
|
|
1069
|
+
|
1062
|
1070
|
${PROJECT_NAME}-pass -u $MY_USERNAME -a xmpp -p "$XMPP_PASSWORD"
|
1063
|
1071
|
|
1064
|
1072
|
APP_INSTALLED=1
|