From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B04751F5AE for ; Mon, 19 Jul 2021 20:03:21 +0000 (UTC) Received: by mail-qk1-x732.google.com with SMTP id m68so17938029qke.7 for ; Mon, 19 Jul 2021 13:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=bMJWsdkUzlJzQbOn2YVXkz8otnOmbND324d5kH2B9IU=; b=g2G5LgxPJ2Jpvbcl2pEDxNOFscpP536WmVqtL4RLqUnBwsmkh2uvrjDLy/U9kGYS91 DSvu7AxYhmshc8vBN3a7O2DhjB58bW6EtCAcJz4M7JBH1QeyfmaT5kH1kqmJ3BcEkKf+ ZTFFSJPFCROO6B9DxEywG+fzf2SAq70/m5tEQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=bMJWsdkUzlJzQbOn2YVXkz8otnOmbND324d5kH2B9IU=; b=SS1BRA974mIHRTBYcGnmFB5L0BSw3fZw4WCOjbWXVFRXrW3+qt2i9KIO4ctD5p0fg8 qzdf59UU3rRLqP72qwbXL0B/QciJ+59Nk7yEjlnFnUTt4uYN8cHCr8SGVtVQpEpLnvLn BEsmSyge+M+SQi0jXPQtbDsL4qE3Wtcd00CXvwaid1w42Y1VUJCyb+wJ7Mp/JzxKsJVi Blw6Xyl/rcHGlKa2oC5ZnToLOmidnwB2vDuFkk60xteNT4ZwNo7v9m0uQPeMENbxWLZA unXKC8kNnOMgsjmiV8gH+bhRPWNhZnrs1UH87qeTLmtEvkUGw8uXJxv5a9IzeB7wa62V XKtQ== X-Gm-Message-State: AOAM533+Yb0afjKLEWW/zrWzCU2YFzu5srv5SkazOwZO+DMDhWJoD3mf qf3GAp21XEL152X64NLf2gdP2AJYKtlMQHuynoQ= X-Google-Smtp-Source: ABdhPJymYKWmiI7HMuyscbu+OubZ4E6ubyd9W/Cvc6PU9pgrbal3TMPt8sChoBODmX1S2UBTjXoKHA== X-Received: by 2002:a37:9ec1:: with SMTP id h184mr26057929qke.0.1626725000395; Mon, 19 Jul 2021 13:03:20 -0700 (PDT) Received: from nitro.local ([89.36.78.230]) by smtp.gmail.com with ESMTPSA id n14sm193753qti.47.2021.07.19.13.03.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jul 2021 13:03:19 -0700 (PDT) Date: Mon, 19 Jul 2021 16:03:18 -0400 From: Konstantin Ryabitsev To: meta@public-inbox.org Subject: Restarting daemons on config file change Message-ID: <20210719200318.wo4ydjonc3u3ibtu@nitro.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline List-Id: Hello: Something I stumbled on today is the need to have the -httpd and -nntpd daemons reread the config file after we've mirrored and initialized new inboxdirs. The situation is: - public-inbox-{httpd,nntpd} are running as systemd services as user "publicinbox" - the mirroring and initialization/indexing is done as user "mirror", so we can't send a HUP to the daemon processes The best I can think of is a systemd watcher service that automatically restarts the daemons when the config file is modified, but I wanted to check here first to see if perhaps I'm missing something simpler. -K