The samba background daemon doesn't refresh the printcap cache on startup. It only refreshes it after the 'printcap cache time' elapsed. So you have to wait 5 minutes before spoolssd is able to find printers, but till then the process is already killed again ...
Reproducer: lpadmin -p testprinter -E -v /dev/null smbpasswd -a root bin/smbd lpstat -l -p testprinter rpcclient -Uroot localhost -c 'getprinter testprinter 2'
This bug was referenced in samba master: 3b5b80e99603e4c1d4d1080ed45bd75116a9fa8e ac16351ff5a0c5b46f461c26516b85e8483bba83
Created attachment 17320 [details] patch for 4.16
Re-assigning to Jule for inclusion in 4.16.next.
Pushed to autobuild-v4-16-test.
This bug was referenced in samba v4-16-test: 8507fa6fc7daa29746ed81578669070a32bd0427 1397656cebf2cdd00a28727ec8f4b65308106440
Closing out bug report. Thanks!
This bug was referenced in samba v4-16-stable (Release samba-4.16.2): 8507fa6fc7daa29746ed81578669070a32bd0427 1397656cebf2cdd00a28727ec8f4b65308106440