Univention Bugzilla – Attachment 11003 Details for
Bug 55264
New printers take a long time to show up in samba
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
smbcontrol-reload-config.diff
smbcontrol-reload-config.diff (text/plain), 776 bytes, created by
Arvid Requate
on 2022-10-25 12:33:59 CEST
(
hide
)
Description:
smbcontrol-reload-config.diff
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2022-10-25 12:33:59 CEST
Size:
776 bytes
patch
obsolete
>diff --git a/services/univention-printserver/cups-printers.py b/services/univention-printserver/cups-printers.py >index 3fdfcf3608..9bb8eeb0a3 100644 >--- a/services/univention-printserver/cups-printers.py >+++ b/services/univention-printserver/cups-printers.py >@@ -416,8 +416,8 @@ def reload_smbd(): > listener.setuid(0) > try: > ucr_handlers.commit(listener.configRegistry, ['/etc/samba/smb.conf']) >- if os.path.exists('/etc/init.d/samba'): >- subprocess.call(('/etc/init.d/samba', 'reload')) >+ if os.path.exists('/usr/bin/smbcontrol'): >+ subprocess.call(('/usr/bin/smbcontrol', 'all', 'reload-config')) > elif os.path.exists('/usr/bin/pkill'): > ud.debug(ud.LISTENER, ud.WARN, "cups-printers: pkill -HUP smbd") > subprocess.call(('/usr/bin/pkill', '-HUP', 'smbd'))
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 55264
: 11003