Editing FoolFuuka/Start

From Bibliotheca Anonoma

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
We should start using systemd instead of screen, but here is the procedure in case you have a system without systemd (such as Ubuntu 14.04 LTS)
We should start using systemd instead of screen, but here is the procedure in case you have a system without systemd (such as Ubuntu 14.04 LTS)
== Important Directories ==
* /home/asagi - location of asagi and related files
* /var/www/foolfuuka - location of desuarchive foolfuuka php files
* /var/www/rbt-foolfuuka - location of rbt.asia foolfuuka php files
* /home/atc/ - location of your own user's php scripts for deleting content. We use atc as the example user.
* /var/www/foolfuuka/app/foolz/foolframe/logs - location of log files


== Boot Procedure ==
== Boot Procedure ==
Line 27: Line 18:


Find the screen session of the service you want to restart with htop or something. Then kill the process ID of it.
Find the screen session of the service you want to restart with htop or something. Then kill the process ID of it.
== Redis Cache ==
Caches results of CPU intensive calculations. They do expire. Generally shouldn’t have a problem but if it does, restart.
    sudo systemctl restart redis
== When to stop the Asagi dumper ==
Stop the Asagi dumper whenever you’re importing an external dump file (Anything heavy you do with the database)
Exception: Backups, they don’t lock the db
== Need to grab past week's posts from 4chan.org Archives.json ==
Sometimes your archiver will not be running and you want to fetch the past week or so's worth of threads and images. Use the asagi.arch instance to do so.
    sudo su asagi
    cd /home/asagi/asagi.arch/
    java -jar asagi.jar
* let it run for an hour or two, then Ctrl + C it (based on the original dumper, so it will keep refreshing archives.json file)
* anything made in the last 7 days will be grabbed from this
Please note that all contributions to Bibliotheca Anonoma are considered to be released under the Creative Commons Attribution-ShareAlike (see Bibliotheca Anonoma:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)