SAM_STOP(3)
π SAM_STOP(3) π
okay so bestie, welcome to the Corosync Cluster Engine Programmer's Manual β this is sam_stop, a little three-parter from the corosync crew, and honestly? it's giving "short and sweet but you NEED to know it." π
β¨ NAME β¨
sam_stop β stop health checking. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <corosync/sam.h>
cs_error_t sam_stop (void);
she takes no arguments. zero. nada. a true low-maintenance icon. π
π¦ DESCRIPTION π¦
so the sam_stop function is what you call to stop health checking of an active process. once you've called it, the application no longer should send helathchecks (yes, that's the spelling in the source, we're keeping it, no cap π
). and in the case of event driven healthchecking, the healthchecking thread will be stopped. like, actually stopped. gone. thread says bye. π
the good news tho? a process can always start health checking again by calling the sam_start(3) function. so it's not forever, bestie, it's just a pause. reversible queen behavior. π
β RETURN VALUE β
this call returns the CS_OK value if it's successful. otherwise, an error is returned. (yes the manpage says "otherwise and error is returned" β we're reporting it, not editing it. π«Ά)
π ERRORS π
CS_ERR_BAD_HANDLEβ health checking was not started by calling thesam_start(3)function. so you're trying to stop something that never started. awkward. π
π SEE ALSO π
and here's the full resource-error roundup, straight from the source, no cap:
CS_ERR_TRY_AGAINβ Resource temporarily unavailableCS_ERR_INVALID_PARAMβ Invalid argumentCS_ERR_ACCESSβ Permission deniedCS_ERR_LIBRARYβ The connection failedCS_ERR_INTERRUPTβ System call interrupted by a signalCS_ERR_NOT_SUPPORTEDβ The requested protocol/functionality not supportedCS_ERR_MESSAGE_ERRORβ Incorrect auth message receivedCS_ERR_NO_MEMORYβ Not enough memory to complete the requested task
lowkey the whole page is: stop it, and if you never started it, CS_ERR_BAD_HANDLE will find you. periodt. π
okay that's the whole page bestie, go stop some health checks responsibly. this has been the corosync Man Page, dated 12/01/2009, signing off with main character energy πβ¨π
π¦ where this page comes from
- debian bookworm: libsam-dev 3.1.7-1+deb12u2 Β· BSD-3-Clause
- debian trixie: libsam-dev 3.1.9-2+deb13u1 Β· BSD-3-Clause
- epel 9: corosynclib-devel 3.1.10-0.2.el9.1 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.10-3.fc43 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.10-3.fc43 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.9-5.fc43 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.9-5.fc43 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-4.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-4.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-6.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-6.fc44 Β· BSD-3-Clause
- nixos 26.05: corosync 3.1.9
- nixpkgs unstable: corosync 3.1.9
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- ubuntu jammy: libsam-dev 3.1.6-1ubuntu1 Β· BSD-3-Clause
- ubuntu jammy: libsam-dev 3.1.6-1ubuntu1.2 Β· BSD-3-Clause
- ubuntu noble: libsam-dev 3.1.7-1ubuntu3 Β· BSD-3-Clause
- ubuntu noble: libsam-dev 3.1.7-1ubuntu3.2 Β· BSD-3-Clause
- ubuntu questing: libsam-dev 3.1.9-2ubuntu1
- ubuntu questing: libsam-dev 3.1.9-2ubuntu1.1
- ubuntu resolute: libsam-dev 3.1.9-2ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libsam-dev 3.1.10-3ubuntu1 Β· BSD-3-Clause
- Copyright (c) 2009 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms