90 reputation
17
bio website stenyak.com
location
age
visits member for 1 year, 3 months
seen Apr 16 at 6:24

Jan
30
comment Smarter log rotation
@M_dk I generate 100MiB of logs per hour, which are very useful, but only when an error happens. Rest of the time it's space that I really cannot afford to waste.
Jan
30
comment Smarter log rotation
@SamiLaine looks like maybe I could accomplish what I want with "postrotate", I'll give it a try, thanks!
Jan
30
asked Smarter log rotation
Dec
9
awarded  Popular Question
Aug
28
awarded  Notable Question
Jul
17
accepted Elegantly get list of descendant processes
Jul
17
comment Elegantly get list of descendant processes
Child processes are arbitrary and may or may not use process groups themselves (I cannot assume anything). However your answer comes the closest to what seesm to be achievable in Linux, so I'll accept it. Thanks.
Jul
17
comment Elegantly get list of descendant processes
Both use cases are used in a continuous integration/testing environment, so they have to deal with the possibility of a bug existing in the child process/es. This bug may manifest itself as inability to properly shutdown themselves or their children, so I need a way to ensure that I can close them all in the worst case.
May
21
awarded  Popular Question
Mar
13
comment Elegantly get list of descendant processes
@Gilles using ps ax -opid,ppid,pgrp,cmd I see there are many processes that share the same pgrp as the exact subtree I want to kill. (Additionally, I can't see the setpgrp program listed anywhere in debian stable packages: packages.debian.org/… )
Mar
12
awarded  Commentator
Mar
12
comment Elegantly get list of descendant processes
I don't care about the format as long as it's clean (i.e. I don't care about '\n' delimited vs. ' ' delimited). Practical use case is: a) a daemonizer script I wrote out of pure masochism (specifically, the "stop" functionality has to deal with whatever tree of processes the daemonized process spawned); and b) a timeout script that will kill whatever the timed-out process managed to create.
Mar
12
awarded  Scholar
Mar
12
accepted Elegantly get list of children processes
Mar
12
comment Elegantly get list of children processes
I'm afraid your answer is correct, but my question was incorrect. Therefore I accept your answer (which I didn't know, btw) and I opened another thread with the question I really meant to ask: unix.stackexchange.com/questions/67668/…
Mar
12
asked Elegantly get list of descendant processes
Mar
12
asked Elegantly get list of children processes
Dec
28
comment Swap usage too high?
Didn't know that! I've added df -ht tmpfs --total to my cron-ed debug script. Next time the problem happens, I'll post the output. One question though: should I worry about the Used column, or the Size column?
Dec
28
awarded  Supporter
Dec
28
comment Swap usage too high?
The swap filled again yesterday. Before the user rebooted the computer, a cron-ed script managed to log some information, which I've edited into the original question. Hope that helps.