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. β¨-execname β select the program the master should exec the next time it shuts down. the master will run the program configured asMASTER_SHUTDOWN_<name>from the configuration of thecondor_master. this is the whole point of the command, fr fr. π-debugβ causes debugging information to be sent tostderr, based on the value of the configuration variableTOOL_DEBUG. little peek behind the curtain. π¦-poolcentralmanagerhostname[: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. πΈ-namehostname β 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>". π-constraintexpression β 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 π«Ά
πΈ COPYRIGHT πΈ
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
- fedora 43: condor 25.14.1-1.fc43 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms