GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Giacomo Tesio (giacomo@snac.tesio.it)'s status on Tuesday, 17-Dec-2024 02:57:33 JST Giacomo Tesio Giacomo Tesio
    • The Real Grunfink
    @grunfink@comam.es I have a couple little feature requests that I think might slightly improve the usage of #Snac with cgi-fcgi on cheap shared hostings:

    1) add to server.json an option to configure a folder where to write logs (or at least to save them in a dedicated folder in base dir) instead of standard output. Within such folder, I'd name them after the start date of the server (e.g. snac_2024-12-13.log). When the option is not defined, I'd preserve the current behavior (log to stdout).
    2) when running as a server, acquire an advisory lock on the pid, and if you cannot acquire the lock, just exit because someone else is still handling requests for that basedir.
    In conversation about 5 months ago from snac.tesio.it permalink
    • Embed this notice
      The Real Grunfink (grunfink@comam.es)'s status on Tuesday, 17-Dec-2024 02:57:30 JST The Real Grunfink The Real Grunfink
      in reply to
      Great. I'll do the advisory lock on the pidfile, I think it's a good measure.
      In conversation about 5 months ago permalink
    • Embed this notice
      Giacomo Tesio (giacomo@snac.tesio.it)'s status on Tuesday, 17-Dec-2024 02:57:31 JST Giacomo Tesio Giacomo Tesio
      in reply to
      • The Real Grunfink
      As for 1) I just noticed the log/ folder that exactly does what I need, sorry for the noise @grunfink@comam.es

      2) might still be useful on race conditions, when two different requests to cgi-fcgi find that snac is not running at the same time and both try to start it: we don't want to have two instances of snac racing so the second should happily exits.

      In conversation about 5 months ago permalink
    • Embed this notice
      The Real Grunfink (grunfink@comam.es)'s status on Tuesday, 17-Dec-2024 04:03:29 JST The Real Grunfink The Real Grunfink
      in reply to
      I've just pushed to the repository a version with pidfile locking; please, confirm if it meets your needs.

      In conversation about 5 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.