FoolFuuka/Start: Difference between revisions

From Bibliotheca Anonoma
(Created page with "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) == Boot Procedure == /etc/rc....")
 
No edit summary
Line 18: 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.
== 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

Revision as of 04:34, 2 January 2019

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)

Boot Procedure

/etc/rc.local is ran, has some configurations for tokudb. It disables hugepages just in case a kernel update breaks it.

  • Startup script is /home/asagi/start.sh
    • Starts asagi (asagi)
    • Starts intel sharing & ban fetching for Desu (intel / bans)
    • Starts intel sharing & ban fetching for RBT (rintel / rbans)
    • Stats is disabled, but you can uncomment those (stats / rstats)

Restarting Asagi by screen sessions

The commands to start each service of FoolFuuka/Asagi are ordered by screen commands in the following file:

/home/asagi/start.sh

Find the screen session of the service you want to restart with htop or something. Then kill the process ID of it.

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