Disable a default behavior for qterm. The default was especially dangerous, thus this at least makes one think about the action. From the Ben collection. --- pbs-2.3.12-pw/doc/man8/qterm.8B | 5 +---- pbs-2.3.12-pw/src/cmds/qterm.c | 10 ++++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff -puN doc/man8/qterm.8B~qterm doc/man8/qterm.8B --- pbs-2.3.12/doc/man8/qterm.8B~qterm 2004-04-17 11:07:12.000000000 -0400 +++ pbs-2.3.12-pw/doc/man8/qterm.8B 2004-04-17 11:07:12.000000000 -0400 @@ -81,7 +81,7 @@ .Sh NAME qterm \- terminate processing by a pbs batch server .Sh SYNOPSIS -qterm [\^-t\ type\^] [server...] +qterm \^-t\ type\^ [server...] .Sh DESCRIPTION The .B qterm @@ -115,9 +115,6 @@ privilege. Specifies the type of shut down. The types are: .RS .IP immediate -This is the default action if the -.Ar -t -option is not specified. All running jobs are to immediately stop execution. .if !\n(Pb .ig Ig The value passed in the diff -puN src/cmds/qterm.c~qterm src/cmds/qterm.c --- pbs-2.3.12/src/cmds/qterm.c~qterm 2004-04-17 11:07:12.000000000 -0400 +++ pbs-2.3.12-pw/src/cmds/qterm.c 2004-04-17 11:07:12.000000000 -0400 @@ -81,7 +81,7 @@ * The qterm command terminates the batch server. * * Synopsis: - * qterm [-t type] [server ...] + * qterm -t type [server ...] * * Options: * -t delay Jobs are (1) checkpointed if possible; otherwise, (2) jobs are @@ -131,7 +131,7 @@ char **argv; static char opts[] = "t:"; /* See man getopt */ int s; /* The execute line option */ - static char usage[] = "Usage: qterm [-t immediate|delay|quick] [server ...]\n"; + static char usage[] = "Usage: qterm -t immediate|delay|quick [server ...]\n"; char *type = NULL; /* Pointer to the type of termination */ int manner; /* The type of termination */ int errflg = 0; /* Error flag */ @@ -161,8 +161,10 @@ char **argv; fprintf(stderr, usage); exit(1); } - } else - manner = SHUT_IMMEDIATE; + } else { + fprintf(stderr, usage); + exit(1); + } if ( optind < argc ) for ( ; optind < argc; optind++ ) _