BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Corralling Processes on Linux
- Subject: [Discuss] Corralling Processes on Linux
- From: dsr at randomstring.org (Dan Ritter)
- Date: Sat, 20 Jan 2018 18:49:44 -0500
- In-reply-to: <054a4346-ed8c-4df7-a444-823b3f269c6c@borg.org>
- References: <054a4346-ed8c-4df7-a444-823b3f269c6c@borg.org>
On Sat, Jan 20, 2018 at 03:56:34PM -0500, Kent Borg wrote: > Is there a way to do this with daemonized processes? I create an oddball > collection, and want the ability to kill the whole lot. > > Seems process group IDs might bark up this tree, but it doesn't look like I > can tag a whole funny-shaped tree of processes with the same ID (this > true?). And, my experiments along these lines have run into "operation not > permitted"; I don't want to have to do this as root. (In the file example: I > don't need to be root to put files and directories in a directory...) > > I thought about creating all these processes as a different user, and then > killing everything owned by that user, but that probably requires root again > (if that other user isn't me), and maybe I don't want to kill /everything/ > (a login?) owned by the user. killall can do it by name and take regexps, on Linux and MacOS. So if you give them a distinctive name scheme, that would work. Say all your processes start with k1-, you can use On Mac: killall -m "k1-*" and on Linux: killall -r "k1-*" -dsr-
- References:
- [Discuss] Corralling Processes on Linux
- From: kentborg at borg.org (Kent Borg)
- [Discuss] Corralling Processes on Linux
- Prev by Date: [Discuss] Corralling Processes on Linux
- Next by Date: [Discuss] AD/LDAP authentication
- Previous by thread: [Discuss] Corralling Processes on Linux
- Next by thread: [Discuss] AD/LDAP authentication
- Index(es):