SANLK-RESETD(8)

✨ SANLK-RESETD ✨

okay bestie, welcome to the sanlk-resetd page β€” that's the host reset daemon from the System Manager's Manual, and she is not here to play. this one's got range: it watches lockspaces, and when something goes sideways it nukes the host. no cap. πŸ’…


🌸 SYNOPSIS 🌸

sanlk-resetd [OPTIONS] lockspace_name ...

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, the sanlk-resetd daemon ✨gets events✨ from the sanlock lockspaces you name. and when those events show up, they're defined to make sanlk-resetd do one of these two things:

  • use wdmd/watchdog to reset the host πŸ’€
  • use /proc/sysrq-trigger to reboot the host πŸ”₯

okay so now the fun part. the sanlk-reset program can be run on another host, and it can request that sanlk-resetd reset the host it's running on. it's giving long-distance chaos. for that reset request to actually succeed, both hosts must be operational and both need to have continued access to a common lockspace β€” no shared lockspace, no reset, periodt. after setting the event, the sanlk-reset program monitors the host status in the sanlock lockspace until the target host is dead. yes, dead-dead. πŸͺ¦

but wait, there's more πŸ’– the sanlk-reset program can also be run on the same host as sanlk-resetd, and in that case it updates which lockspaces the local sanlk-resetd is watching for events. so it's like, a little settings refresh for your local daemon. iconic.


πŸŽ€ OPTIONS πŸŽ€

  • --version, -V β€” print the version. that's it, that's the whole thing 🫢
  • --help, -h β€” print usage. your girl when you forget how she works πŸ’…
  • --foreground, -f β€” don't fork. stay right here in front of you, main character energy ✨
  • --daemon-debug, -D β€” enable debugging to stderr and don't fork. two-for-one, we love a multitasker πŸ”₯
  • --sysrq-reboot, -b 0|1 β€” enable/disable (1/0) the use of /proc/sysrq-trigger to reboot. flip the 1 to turn it on, 0 to turn it off 🌈
  • --sysrq-delay, -d sec β€” delay this many seconds before using /proc/sysrq-trigger. a lil dramatic pause before the drop 😭
  • --resource-mode, -R 0|1 β€” resource leases are used (1) or not used (0) to protect storage. pick your vibe: 1 = leases on, 0 = leases off πŸ’œ
heads up bestie: 0|1 means exactly those two values, and sec is a number of seconds. don't get creative, the daemon will not be charmed by your creativity πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

sanlk-reset(8) sanlock(8) wdmd(8) β€” go read these next, they're the friend group 🧚


and that's the whole page, babe πŸ’– this was SANLK-RESETD(8) from the System Manager's Manual, dated 2014-08-14, and honestly? still slaying. stay safe out there, don't reset anything you can't emotionally recover from πŸŽ€βœ¨