]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: add pid file directory option to cfg watch sidecar
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 10 Nov 2025 21:15:29 +0000 (16:15 -0500)
committerSachin Prabhu <sprabhu@redhat.com>
Tue, 18 Nov 2025 14:41:57 +0000 (14:41 +0000)
This will enable the config watch sidecar to signal processes
with a SIGHUP to tell them to reload configuration when config
watch has detected a configuration change. Currently only used
by keybridge.

Resolves: rhbz#2412278
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 54f2c897a68daf93252ea20d070d45e561f26718)

src/cephadm/cephadmlib/daemons/smb.py

index 24622d70f2b69fdffa6a50637926aabc600309e4..46988c5791fb256e415a6406d0b12c89b2dd7fff 100644 (file)
@@ -408,7 +408,11 @@ class ConfigWatchContainer(SambaContainerCommon):
         return 'configwatch'
 
     def args(self) -> List[str]:
-        return super().args() + ['update-config', '--watch']
+        return super().args() + [
+            'update-config',
+            '--watch',
+            f'--signal-pids-dir={_WANT_SIGNAL_DIR}',
+        ]
 
 
 class SMBMetricsContainer(ContainerCommon):