[freshports-coders] fp-listen

Dan Langille dan at langille.org
Mon Aug 7 21:50:42 UTC 2023


The fp-listen daemon runs on the webserver node. It connects to the database and waits for signals. The signal wakes it up. Based on the signal, it takes an action, which might include reading a database table for a list of things to clear.

That list of things to clear has been enlarged.

fp-listen needs to know where to find the new things to clear from the cache. Cache is stored on disk. The fp-listen.ini.sample file has three new items. 

In short, fp-listen.ini needs to be updated based on what's in fp-listen.ini.sample

Look in /usr/local/etc/freshports/ for both files, update, and restart:

service fp_listen restart

and tail -F /var/log/freshports/freshports.log

It should start up like this:

Aug  6 14:21:42 dev-nginx01 fp-listen[38244]: Starting up - this should not occur often
Aug  6 14:21:42 dev-nginx01 fp-listen[38244]: These are the (event name, script name) pairs we are ready for:
Aug  6 14:21:42 dev-nginx01 fp-listen[38244]: ('port_updated', 'listen_port')
Aug  6 14:21:42 dev-nginx01 fp-listen[38244]: ('ports_moved', 'listen_ports_moved')
Aug  6 14:21:42 dev-nginx01 fp-listen[38244]: ('ports_updating', 'listen_ports_updating')
Aug  6 14:21:42 dev-nginx01 fp-listen[38244]: ('vuxml', 'listen_vuxml')
Aug  6 14:21:42 dev-nginx01 fp-listen[38244]: ('category_new', 'listen_category_new')
Aug  6 14:21:42 dev-nginx01 fp-listen[38244]: ('date_updated', 'listen_date_updated')
Aug  6 14:21:42 dev-nginx01 fp-listen[38244]: ('packages_imported', 'listen_packages_imported')
Aug  6 14:21:42 dev-nginx01 fp-listen[38244]: ('listen_for', 'ClearPackagesCache')
Aug  6 14:21:42 dev-nginx01 fp-listen[38244]: ('commit_updated', 'listen_commit')
Aug  6 14:21:42 dev-nginx01 fp-listen[38244]: Just woke up! *************

Please post your work.  I know posting your work wasn't mentioned before you joined up. I think it would be useful for others to see.

Thank you.

-- 
  Dan Langille
  dan at langille.org


More information about the freshports-coders mailing list