samba-bgqd: fix startup and logging
authorRalph Boehme <slow@samba.org>
Thu, 11 Nov 2021 04:23:09 +0000 (05:23 +0100)
committerRalph Boehme <slow@samba.org>
Thu, 11 Nov 2021 13:49:32 +0000 (13:49 +0000)
commit54f54fc2627acbf5fac5e1fa86ab9f743741f3c4
treefdd496b6aa2c76db5357900f09fa95f7144086a2
parent25043ebb2e6f74592e802f78d327f844e615a442
samba-bgqd: fix startup and logging

Let samba-bgqd use the new POPT_COMMON_DAEMON infrastructure.

The calls to setup_logging() can safely be removed as this is already taken care
of by samba_cmdline_init().

To avoid a logfile basename of ".log" when using "%m", we add a call to
set_remote_machine_name().

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14897

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/printing/samba-bgqd.c