pbs_terminate(3B)

πŸ“¦ version 23.06.06-unstable-2026-04, in nixos 26.05, nixpkgs unstable

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 of pbs_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 in pbs_ifl.h. valid values are SHUT_IMMEDIATE, SHUT_DELAY, and SHUT_QUICK. see qterm(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