pbs_terminate(3B)
β¨ NAME β¨
okay bestie, welcome to pbs_terminate(3B) β the manual page for pbs_terminate, and its whole personality is literally terminate a pbs batch server π
πΈ SYNOPSIS πΈ
#include <pbs_error.h>
#include <pbs_ifl.h>
int pbs_terminate(int connect, int manner, char *extend)
π¦ DESCRIPTION π¦
So here's the vibe: you issue a batch request to shut down a batch server, and this request requires the privilege level usually reserved for batch operators and administrators. π
A Server Shutdown batch request is generated and sent to the server over the connection specified by connect, which is the return value of pbs_connect(). that's the connection handshake, no cap π«Ά
The parameter manner specifies the manner in which the server is shut down. The available manners are defined in pbs_ifl.h as:
#define SHUT_IMMEDIATE 0β shutdown is to be immediate; running jobs are checkpointed, requeued, or deleted as required. π₯#define SHUT_DELAY 1β jobs which can be checkpointed are checkpointed, terminated, and requeued. Jobs which cannot be checkpointed but are rerunnable are terminated and requeued. Shutdown is delayed until the remaining running jobs complete. No new jobs will be started by the server. π«Ά
The server will not respond to the batch request until the server has completed its termination procedure. literally waiting for the whole glow-down to finish β¨
The parameter extend is reserved for implementation defined extensions. (so don't be inventing your own lore for it, bestie π)
This call requires PBS Operator or Manager privilege. π
π SEE ALSO π
qterm(8B)pbs_connect(3B)
π DIAGNOSTICS π
When the batch request generated by pbs_terminate() function has been completed successfully by a batch server, the routine will return 0 (zero). π Otherwise, a non zero error is returned. The error number is also set in pbs_errno. π
bye bestie π β footer source/version vibes: Local + pbs_terminate(3B); no date line was printed on this one, so that's the whole cute sign-off πβ¨
π¦ where this page comes from
- epel 9: torque-devel 6.1.3-8.el9 Β· OpenPBS and TORQUEv1.1
- nixos 26.05: torque 6.1.3h2
- nixpkgs unstable: torque 6.1.3h2
- Copyright (c) 1999-2000 Veridian Information Solutions, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms