The Samba-Bugzilla – Attachment 18380 Details for
Bug 15683
Running samba-bgqd a a standalone systemd service doesn't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 4.20
0001-s3-printing-Allow-to-run-samba-bgqd-as-a-standalone-.patch (text/plain), 1.31 KB, created by
Andreas Schneider
on 2024-07-19 13:11:19 UTC
(
hide
)
Description:
patch for 4.20
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2024-07-19 13:11:19 UTC
Size:
1.31 KB
patch
obsolete
>From 3626273478af291634898dd9abb8d52e26aa1169 Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@samba.org> >Date: Fri, 12 Jul 2024 14:18:26 +0200 >Subject: [PATCH] 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 <asn@samba.org> >Reviewed-by: Alexander Bokovoy <ab@samba.org> >(cherry picked from commit 0a532378322661b23b3393eb2ebde29402a16e62) >--- > source3/printing/samba-bgqd.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >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; >-- >2.45.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
ab
:
review+
Actions:
View
Attachments on
bug 15683
: 18380