fixproc(1)

πŸ“¦
version 5.9.5.2 Β· 4 versions
, in arch rolling, nixos 26.05, nixpkgs unstable, ubuntu stonking

πŸ’– fixproc β€” bestie edition πŸ’–

okay so real talk: this one is from Net-SNMP, and it's the little goblin that keeps your processes alive. think of it as a babysitter for daemons. it checks them, it kills them (gently, then not gently), it restarts them, it just… handles it. no cap. πŸŽ€


✨ NAME ✨

fixproc β€” fixes a process by performing the specified action. literally what it says on the tin, and honestly? iconic for that. πŸ’…


🌸 SYNOPSIS 🌸

wait bestie let me format that properly because it deserves it:

fixproc [-min n] [-max n] [-check | -kill | -restart | -exist | -fix] proc ...


so you give it some process names (`proc ...`, and yes you can pass more than one, she's versatile πŸ’…) and one of the actions, and she goes to work. the action stuff is all mutually exclusive btw β€” `-check`, `-kill`, `-restart`, `-exist` and `-fix` are in that little `|` sandwich up there, so pick ONE, don't be greedy. πŸ™ˆ

---

# πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: `fixproc` fixes a process named `proc` by performing the specified action. 🫢

The actions you can pick from are **check**, **kill**, **restart**, **exist**, or **fix**. you tell it which one you want right there on the command line, OR it goes and reads from a default database, which describes the default action to take for each process. yes, girl, there's a whole config situation β€” the database format and the meaning of each action are described below. πŸ‘‘

---

# πŸ’… OPTIONS πŸ’…

- **`-min n`** β€” the minimum number of processes that should be running. defaults to `1`. it's giving "at least this many, please and thank you." ✨

- **`-max n`** β€” the maximum number of processes that should be running. defaults to `1`. the ceiling, the limit, the "okay that's enough now." πŸŽ€

- **`-check`** β€” check the process against the database `/local/etc/fixproc.conf`. (note the path bestie, it's real specific.) πŸ“

- **`-kill`** β€” kill the process, wait `5` seconds, then `kill -9` if it's still around. she asks nicely first and then she does NOT ask nicely. 😭πŸ”₯

- **`-restart`** β€” kill the process, wait `5` seconds, `kill -9` if it still exists, and then start it again. full glow-up pipeline: terminate, escalate, resurrect. it's giving phoenix energy fr fr. 🌈

- **`-exist`** β€” checks if `proc` exists in `ps` && (`min` <= num. of processes <= `max`). the classic vibe check: are you there, and are you within the acceptable range? πŸ‘€

- **`-fix`** β€” check the process against the database `/local/etc/fixproc.conf`, then perform the defined action, but ONLY if the check fails. it's the "don't touch it unless it's actually broken" option, and honestly that's self-care. πŸ’œ

---

> 🌟 quick reminder that `-check`, `-kill`, `-restart`, `-exist` and `-fix` are mutually exclusive β€” the synopsis says `-check | -kill | -restart | -exist | -fix`, so pick one, bestie. no mixing. that's the rule. 🫢

---

okay and that's the whole page!! she's short, she's sweet, she keeps your daemons in line. no cap, this is the **V5.9.5.2** era of `fixproc` from the **Net-SNMP** girlies, dated **16 Nov 2006** β€” vintage but still slaying. bye bestie, go fix a process! πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ˜­πŸ”₯πŸ‘‘πŸŒˆβ­πŸ’€πŸ™ˆπŸ“πŸ§šπŸ’œ
πŸ“¦ where this page comes from