1condor_set_shutdown(1)      General Commands Manual     condor_set_shutdown(1)
2
3
4

Name

6       condor_set_shutdownSet a program to execute upon condor_mastershut down
7

Synopsis

9       condor_set_shutdown[-help | -version]
10
11       condor_set_shutdown-exec programname[-debug] [-pool centralmanagerhost‐
12       name[:portnumber]] [ -name hostname| hostname| -addr  "<a.b.c.d:port>"|
13       "<a.b.c.d:port>"| -constraint expression| -all]
14

Description

16       condor_set_shutdownsets  a program (typically a script) to execute when
17       the condor_masterdaemon shuts down. The  -exec  programnameargument  is
18       required,  and specifies the program to run. The string programnamemust
19       match the string that defines Namein the  configuration  variable  MAS‐
20       TER_SHUTDOWN_<Name>in  the  condor_masterdaemon's  configuration. If it
21       does not match, the condor_masterwill  log  an  error  and  ignore  the
22       request.
23
24       For  security reasons of authentication and authorization, this command
25       requires ADMINISTRATOR level of access.
26

Options

28       -help
29
30          Display usage information
31
32
33
34       -version
35
36          Display version information
37
38
39
40       -debug
41
42          Causes debugging information to be sent  to  stderr,  based  on  the
43          value of the configuration variable TOOL_DEBUG.
44
45
46
47       -pool centralmanagerhostname[:portnumber]
48
49          Specify  a  pool  by  giving  the central manager's host name and an
50          optional port number
51
52
53
54       -name hostname
55
56          Send the command to a machine identified by hostname
57
58
59
60       hostname
61
62          Send the command to a machine identified by hostname
63
64
65
66       -addr <a.b.c.d:port>
67
68          Send the command to a machine's master located at "<a.b.c.d:port>"
69
70
71
72       <a.b.c.d:port>
73
74          Send the command to a machine located at "<a.b.c.d:port>"
75
76
77
78       -constraint expression
79
80          Apply this command only  to  machines  matching  the  given  ClassAd
81          expression
82
83
84
85       -all
86
87          Send the command to all machines in the pool
88
89
90

Exit Status

92       condor_set_shutdownwill  exit with a status value of 0 (zero) upon suc‐
93       cess, and it will exit with the value 1 (one) upon failure.
94

Examples

96       To have all condor_masterdaemons run the program  /bin/rebootupon  shut
97       down, configure the condor_masterto contain a definition similar to:
98
99       MASTER_SHUTDOWN_REBOOT = /sbin/reboot
100
101       where  REBOOTis  an invented name for this program that the condor_mas‐
102       terwill execute. On the command line, run
103
104       % condor_set_shutdown -exec reboot -all
105       % condor_off -graceful -all
106
107       where the string  reboot matches the invented name.
108

Author

110       Center for High Throughput Computing, University of Wisconsin-Madison
111
113       Copyright (C) 1990-2019 Center for High Throughput Computing,  Computer
114       Sciences  Department, University of Wisconsin-Madison, Madison, WI. All
115       Rights Reserved. Licensed under the Apache License, Version 2.0.
116
117
118
119                                     date               condor_set_shutdown(1)
Impressum