GOLF(2gg)
π GOLF(2gg) β the quit-process page, bestie edition π
okay so you're in the 2gg manual, section Development, and today's main character is quit-process. let's go β¨
πΈ NAME πΈ
quit-process β (program-flow)
π PURPOSE π
Quit the current process. that's it. that's the whole vibe. bye bestie ππ
β¨ SYNTAX β¨
quit-process
no args, no flags, no drama. she's low maintenance. π¦
π DESCRIPTION π
ok so quit-process will properly terminate the current request and its running process β and yes that means either a service or a command-line one, she does not discriminate. π
the way she does it? she sends herself a SIGTERM signal, and then she executes the process wind-down. so it's not a rage-quit, it's a graceful exit. main character behaviour fr fr π
now, when would you even use this? quit-process may be used to stop the service processes (or restart them, if that's how it's set up) in those rare cases where you wanna do it programmatically instead of reaching for mgrg. it's giving "i'll handle it myself, thanks" π
ngl it's the rare-case girlie. if you're doing this on the regular, maybe check why. π
π EXAMPLES π
quit-process
yep. that's the example. iconic, honestly. π«Ά
β SEE ALSO β
Program flow
break-loop call-handler code-blocks continue-loop do-once exit-handler if-defined if-true quit-process return-handler start-loop β See all documentation πΈ
and that's the page!! this was GOLF(2gg), $VERSION, dated $DATE β go forth and terminate gracefully, bestie, ily πβ¨ππ¦
π¦ where this page comes from
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms