GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

πŸ’– 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