Browse Source

Stopping gnusocial daemons

Bob Mottram 8 years ago
parent
commit
1d7981b2b6
1 changed files with 9 additions and 3 deletions
  1. 9
    3
      src/freedombone-app-gnusocial

+ 9
- 3
src/freedombone-app-gnusocial View File

443
 
443
 
444
         # stop the daemons
444
         # stop the daemons
445
         cd /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs
445
         cd /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs
446
-        scripts/stopdaemons.sh
446
+        ./scripts/stopdaemons.sh
447
 
447
 
448
         function_check gnusocial_create_database
448
         function_check gnusocial_create_database
449
         gnusocial_create_database
449
         gnusocial_create_database
456
 
456
 
457
         # start the daemons
457
         # start the daemons
458
         cd /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs
458
         cd /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs
459
-        scripts/startdaemons.sh
459
+        ./scripts/startdaemons.sh
460
         echo $"Restore of gnusocial complete"
460
         echo $"Restore of gnusocial complete"
461
     fi
461
     fi
462
 }
462
 }
470
     echo "Removing $GNUSOCIAL_DOMAIN_NAME"
470
     echo "Removing $GNUSOCIAL_DOMAIN_NAME"
471
     nginx_dissite $GNUSOCIAL_DOMAIN_NAME
471
     nginx_dissite $GNUSOCIAL_DOMAIN_NAME
472
     remove_certs $GNUSOCIAL_DOMAIN_NAME
472
     remove_certs $GNUSOCIAL_DOMAIN_NAME
473
+    if [ -f /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts/stopdaemons.sh ]; then
474
+        cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts
475
+        ./scripts/stopdaemons.sh
476
+    fi
473
     if [ -d /var/www/$GNUSOCIAL_DOMAIN_NAME ]; then
477
     if [ -d /var/www/$GNUSOCIAL_DOMAIN_NAME ]; then
474
         rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME
478
         rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME
475
     fi
479
     fi
486
     remove_app gnusocial
490
     remove_app gnusocial
487
     remove_completion_param install_gnusocial
491
     remove_completion_param install_gnusocial
488
     sed -i '/gnusocial /d' $COMPLETION_FILE
492
     sed -i '/gnusocial /d' $COMPLETION_FILE
489
-    pkill queuedaemon
493
+    if [ -f /etc/cron.hourly/gnusocial-daemons ]; then
494
+        rm /etc/cron.hourly/gnusocial-daemons
495
+    fi
490
 }
496
 }
491
 
497
 
492
 function install_gnusocial_main {
498
 function install_gnusocial_main {