pbs_terminate(3B)
okay so bestie, welcome to pbs_terminate(3B) from PBS Professional β the tiny-but-mighty call that shuts down a PBS batch server. no cap, this one has main character energy, so let's get into it. π
β¨
πΈ NAME πΈ
pbs_terminate β shut down a PBS batch server. literally what it says on the tin, bestie. π
β¨ SYNOPSIS β¨
#include <pbs_error.h>
#include <pbs_ifl.h>
int pbs_terminate(int connect, int manner, char *extend)
π¦ DESCRIPTION π¦
This one issues a batch request to shut down a batch server. it's giving "bye bye server" in the most official way possible. π
Specifically, it generates a Server Shutdown (17) batch request and sends it to the server over the connection specified by connect. so fancy, so official. β¨
The pbs_terminate() command exits after the server has completed its shutdown procedure. that part is important, bestie β it does not just dip early, okay? it waits for the shutdown procedure to be done. periodt. π
π REQUIRED PRIVILEGE π
You must have Operator or Manager privilege to run this command. no regular-user shortcuts here, iykyk. π₯
π ARGUMENTS π
connectβ the return value ofpbs_connect(). it specifies the connection handle over which to send the batch request to the server. basically your little server hotline. πmannerβ the manner in which to shut down the server. the available manners are defined inpbs_ifl.h. valid values areSHUT_IMMEDIATE,SHUT_DELAY, andSHUT_QUICK. seeqterm(8B)for information on the manner in which to shut down the server. pick your shutdown vibe wisely. π¦extendβ a character string for extensions to the command. it is not currently used. so yeah, it's that placeholder bestie who showed up to the group chat but isn't saying anything. π
π RETURN VALUE π
The routine returns 0 (zero) on success. slay. β
If an error occurred, the routine returns a non-zero exit value, and the error number is available in the global integer pbs_errno. so check that if things get messy. π
π₯ SEE ALSO π₯
qterm(8B)pbs_connect(3B)
mwah π bestie, this page was brought to you by Local (the source/version cutie), dated 15 November 2019, and it is literally the pbs_terminate(3B) manual page. byeee π«Άπ
π¦ where this page comes from
- nixos 26.05: openpbs 23.06.06-unstable-2026-04-02
- nixpkgs unstable: openpbs 23.06.06-unstable-2026-04-02
- Copyright (C) 1994-2021 Altair Engineering, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms