The branch, master has been updated
       via  0a532378322 s3:printing: Allow to run samba-bgqd as a standalone 
systemd service
      from  7bb59168e9d s4:torture: Initialize struct cldap_netlogon

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 0a532378322661b23b3393eb2ebde29402a16e62
Author: Andreas Schneider <a...@samba.org>
Date:   Fri Jul 12 14:18:26 2024 +0200

    s3:printing: Allow to run samba-bgqd as a standalone systemd service
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=15683
    
    Signed-off-by: Andreas Schneider <a...@samba.org>
    Reviewed-by: Alexander Bokovoy <a...@samba.org>
    
    Autobuild-User(master): Andreas Schneider <a...@cryptomilk.org>
    Autobuild-Date(master): Fri Jul 19 11:13:28 UTC 2024 on atb-devel-224

-----------------------------------------------------------------------

Summary of changes:
 source3/printing/samba-bgqd.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/printing/samba-bgqd.c b/source3/printing/samba-bgqd.c
index 59ed0cc40db..9560fcf9e35 100644
--- a/source3/printing/samba-bgqd.c
+++ b/source3/printing/samba-bgqd.c
@@ -253,7 +253,9 @@ int main(int argc, const char *argv[])
        log_stdout = (debug_get_log_type() == DEBUG_STDOUT);
 
        /* main process will notify systemd */
-       daemon_sd_notifications(false);
+       if (ready_signal_fd != -1 || watch_fd != -1) {
+               daemon_sd_notifications(false);
+       }
 
        if (!cmdline_daemon_cfg->fork) {
                daemon_status(progname, "Starting process ... ");
@@ -325,6 +327,10 @@ int main(int argc, const char *argv[])
                goto done;
        }
 
+       if (!cmdline_daemon_cfg->fork) {
+               daemon_ready(progname);
+       }
+
        if (ready_signal_fd != -1) {
                pid_t pid = getpid();
                ssize_t written;


-- 
Samba Shared Repository

Reply via email to