CONDOR_SET_SHUTDOWN(1)

πŸ’– CONDOR_SET_SHUTDOWN(1) β€” the HTCondor Manual, bestie edition πŸ’–

okay so you know how your condor_master can run a little program on its way out? yeah. this is the tool that tells it which one. πŸŽ€


✨ NAME ✨

condor_set_shutdown β€” it's giving "HTCondor Manual." it's giving "set a program to execute upon condor_master shut down." no cap. πŸ¦‹


🌸 SYNOPSIS 🌸

condor_set_shutdown [-help | -version ]

condor_set_shutdown -exec programname [-debug ] [-pool
centralmanagerhostname[:portnumber]] [ -name hostname | hostname | -addr
"<a.b.c.d:port>" | "<a.b.c.d:port>" | -constraint expression | -all ]

πŸ’… DESCRIPTION πŸ’…

so condor_set_shutdown sets a program (usually a script, let's be honest) to execute when the condor_master daemon shuts down. the -exec programname argument is required β€” literally cannot skip it β€” and it says which program to run. πŸ”₯

here's the tea tho: the string programname has to match the string that defines Name in the configuration variable MASTER_SHUTDOWN_<Name> in the condor_master daemon's configuration. if it doesn't match? condor_master will log an error and straight up ignore the request. πŸ’€ so get the name right, bestie.

for security reasons of authentication and authorization, this command requires ADMINISTRATOR level of access. it's main character energy only, iykyk. πŸ‘‘

πŸ‘‘ OPTIONS πŸ‘‘

  • -help β€” display usage information. the "what do i even do here" button. πŸ™ˆ
  • -version β€” display version information. slay, we love a version check. ✨
  • -exec name β€” select the program the master should exec the next time it shuts down. the master will run the program configured as MASTER_SHUTDOWN_<name> from the configuration of the condor_master. this is the whole point of the command, fr fr. πŸŽ€
  • -debug β€” causes debugging information to be sent to stderr, based on the value of the configuration variable TOOL_DEBUG. little peek behind the curtain. πŸ¦‹
  • -pool centralmanagerhostname[:portnumber] β€” specify a pool by giving the central manager's host name and an optional port number. like an address but for your whole lil condor crew. 🌸
  • -name hostname β€” send the command to a machine identified by hostname. 🫢
  • hostname β€” send the command to a machine identified by hostname. (yes, same thing, just vibes with or without the flag. periodt.) πŸ’œ
  • -addr "<a.b.c.d:port>" β€” send the command to a machine's master located at "<a.b.c.d:port>". 🧚
  • "<a.b.c.d:port>" β€” send the command to a machine located at "<a.b.c.d:port>". 🌈
  • -constraint expression β€” apply this command only to machines matching the given ClassAd expression. picky, and honestly? valid. ⭐
  • -all β€” send the command to all machines in the pool. all of them. every single one. iconic behavior. πŸ”₯

πŸ“ EXIT STATUS πŸ“

condor_set_shutdown will exit with a status value of 0 (zero) upon success, and it will exit with the value 1 (one) upon failure. simple as that, bestie. πŸ’–


🌈 EXAMPLES 🌈

so say you want all the condor_master daemons to run the program /bin/reboot upon shut down. first, configure the condor_master to contain a definition similar to:

MASTER_SHUTDOWN_REBOOT = /sbin/reboot

where REBOOT is an invented name for this program that the condor_master will execute. (invented! we made it up! πŸŽ€)

then, on the command line, run:

$ condor_set_shutdown -exec reboot -all
$ condor_off -graceful -all

where the string reboot matches the invented name. lowercase this time β€” match the name, not the scream. πŸ’…


πŸ’œ AUTHOR πŸ’œ

HTCondor Team 🫢


1990-2026, Center for High Throughput Computing, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI, US. Licensed under the Apache License, Version 2.0.


aaaand that's the whole page, bestie!! no notes, we ate. this was CONDOR_SET_SHUTDOWN(1) from the HTCondor Manual, dated Oct 16, 2026. go set your shutdown program and be free. πŸ’–βœ¨πŸŽ€πŸ¦‹ mwah.

πŸ“¦ where this page comes from